示例
 public sub createoledbparameter()
 dim myparameter as new oledbparameter()
 myparameter.parametername = "description"
 myparameter.oledbtype = oledbtype.varchar
 myparameter.direction = parameterdirection.output
 myparameter.size = 88
 
 dim myparameter as oledbparameter = new oledbparameter("description", "beverages")
 
 dim myvalue as string = "12 foot scarf - multiple colors, one previous owner"
 dim myparameter as new oledbparameter("description", oledbtype.varchar)
 myparameter.direction = parameterdirection.output
 myparameter.size = myvalue.length
 myparameter.value = myvalue
 
 dim myparameter as new oledbparameter("description", oledbtype.varchar, 88)
 myparameter.sourcecolumn = "description"
 myparameter.sourceversion = datarowversion.current
 
 dim myparameter as new oledbparameter("description", oledbtype.varchar, 88)
 myparameter.direction = parameterdirection.output
 
 dim myparameter as new oledbparameter("description", oledbtype.varchar, 88, "description")
 myparameter.direction = parameterdirection.output
 
 dim myparameter as new oledbparameter("description", oledbtype.varchar, 11, parameterdirection.output, true, 0, 0, "description", datarowversion.current, "garden hose")
end sub 
 
 
本文来源于网页设计爱好者web开发社区http://www.html.org.cn收集整理,欢迎访问。