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() 构造函数

用空值(在 Visual Basic 中为 Nothing)作为 ULParameter 对象的值对该对象初始化。

语法
Visual Basic
Public Sub New()
C#
public  ULParameter();
示例

以下代码将创建一个值为 3 的 ULParameter 对象,并将其添加至名为 cmd 的 ULCommand 中。

' Visual Basic
Dim p As ULParameter = New ULParameter
p.Value = 3
cmd.Parameters.Add( p )

// C#
ULParameter p = new ULParameter();
p.Value = 3;
cmd.Parameters.Add( p );
另请参见