首页 > 开发 > .Net > 正文

ADO.NET对象的构造(7)_OleDbParameter(中)

2020-02-03 15:56:27
字体:
来源:转载
供稿:网友


示例

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收集整理,欢迎访问。
  • 发表评论 共有条评论
    用户名: 密码:
    验证码: 匿名发表