Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULParameter 类 » ULParameter 构造函数

 

ULParameter(String, ULDbType, Int32) 构造函数

以指定参数名和数据类型初始化 ULParameter 对象。不建议使用此构造函数;提供它是为了与其它数据提供程序兼容。

语法
Visual Basic
Public Sub New( _
   ByVal parameterName As String, _
   ByVal dbType As ULDbType, _
   ByVal size As Integer _
)
C#
public  ULParameter(
   string  parameterName,
   ULDbType dbType,
   int size
);
参数
  • parameterName   参数的名称。对于未命名参数,请使用一个空字符串 ("") 或空值引用(在 Visual Basic 中为 Nothing)作为其值。在 UltraLite.NET 中,参数名不由 ULCommand 来使用。

  • dbType   iAnywhere.Data.UltraLite.ULDbType 值之一。

  • size   参数的长度。

注释

在 UltraLite.NET 中,参数只能被用作 IN 参数,并忽略所有映射信息。只有 ULParameter.Value 是非常重要的。

另请参见