IDTSVariables100.Add 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Adds a IDTSVariable100 object to the collection.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Function Add ( _
    bstrName As String, _
    bReadOnly As Boolean, _
    bstrNamespace As String, _
    vValue As Object _
) As IDTSVariable100
'用途
Dim instance As IDTSVariables100 
Dim bstrName As String 
Dim bReadOnly As Boolean 
Dim bstrNamespace As String 
Dim vValue As Object 
Dim returnValue As IDTSVariable100 

returnValue = instance.Add(bstrName, bReadOnly, _
    bstrNamespace, vValue)
IDTSVariable100 Add(
    string bstrName,
    bool bReadOnly,
    string bstrNamespace,
    Object vValue
)
IDTSVariable100^ Add(
    [InAttribute] String^ bstrName, 
    [InAttribute] bool bReadOnly, 
    [InAttribute] String^ bstrNamespace, 
    [InAttribute] Object^ vValue
)
abstract Add : 
        bstrName:string * 
        bReadOnly:bool * 
        bstrNamespace:string * 
        vValue:Object -> IDTSVariable100
function Add(
    bstrName : String, 
    bReadOnly : boolean, 
    bstrNamespace : String, 
    vValue : Object
) : IDTSVariable100

參數

  • bstrName
    型別:System.String
    The name of the package, task, or container variable to add to the collection.
  • bReadOnly
    型別:System.Boolean
    true to indicate that the variable is read-only; otherwise, false.
  • bstrNamespace
    型別:System.String
    The namespace for the variable.
  • vValue
    型別:System.Object
    The design-time value of the variable.

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariable100
The added IDTSVariable100 object to the collection.

備註

For more information, see Variables.

請參閱

參考

IDTSVariables100 介面

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間