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 参考 » ULParameterCollection 类 » Add 方法

 

Add(Object) 方法

向集合中添加一个 ULParameter。

语法
Visual Basic
Public Overrides Function Add( _
   ByVal value As Object _
) As Integer
C#
public override int Add(
   object value
);
参数
  • value   要添加到集合中的 ULParameter 对象。

返回值

新 ULParameter 对象的索引。

注释

集合中的所有参数均被视为定位参数,且必须按照 ULCommand.CommandText 中对应的问号占位符的顺序添加到集合中。例如,集合中的第一个参数对应 SQL 语句中的第一个问号,集合中的第二个参数对应 SQL 语句中的第二个问号,依此类推。ULCommand.CommandText 中问号的个数必须至少与集合中参数的个数相同。以空值替代缺少的参数。

另请参见