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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SAParameterCollection 类 » Add 方法

 

Add(String, Object) 方法

将使用指定参数名和值创建的 SAParameter 对象添加到此集合中。

语法
Visual Basic

Public Function Add( _
   ByVal parameterName As String, _
   ByVal value As Object _
) As SAParameter
C#

public SAParameter Add(
   string  parameterName,
   object value
);
参数
  • parameterName   参数的名称。

  • value   要添加到连接中的参数的值。

返回值

新的 SAParameter 对象。

注释

鉴于系统对 0 和 0.0 常量的特殊处理方法以及对重载方法的解析方式,我们强烈建议您在使用此方法时显式地将常量值转换为类型对象。

另请参见