BusinessLogicParameterCollection.Add 方法 (String, DbType, String)

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

Adds the specified parameter to the collection.

命名空间:  Microsoft.SqlServer.Replication.BusinessLogicSupport
程序集:  Microsoft.SqlServer.Replication.BusinessLogicSupport(在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)

语法

声明
Public Function Add ( _
    parameterName As String, _
    dbType As DbType, _
    sourceColumn As String _
) As Integer
用法
Dim instance As BusinessLogicParameterCollection 
Dim parameterName As String 
Dim dbType As DbType 
Dim sourceColumn As String 
Dim returnValue As Integer 

returnValue = instance.Add(parameterName, _
    dbType, sourceColumn)
public int Add(
    string parameterName,
    DbType dbType,
    string sourceColumn
)
public:
int Add(
    String^ parameterName, 
    DbType dbType, 
    String^ sourceColumn
)
member Add : 
        parameterName:string * 
        dbType:DbType * 
        sourceColumn:string -> int
public function Add(
    parameterName : String, 
    dbType : DbType, 
    sourceColumn : String
) : int

参数

  • parameterName
    类型:System.String
    The name of the parameter.
  • sourceColumn
    类型:System.String
    The source column where to add the parameter.

返回值

类型:System.Int32
The index of the parameter object in the collection.

请参阅

参考

BusinessLogicParameterCollection 类

Add 重载

Microsoft.SqlServer.Replication.BusinessLogicSupport 命名空间