Compartilhar via


Método IDTSVariables100.Add

Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.

Adds a IDTSVariable100 object to the collection.

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (em Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintaxe

'Declaração
Function Add ( _
    bstrName As String, _
    bReadOnly As Boolean, _
    bstrNamespace As String, _
    vValue As Object _
) As IDTSVariable100
'Uso
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

Parâmetros

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

Valor de retorno

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

Comentários

For more information, see Variables.

Consulte também

Referência

IDTSVariables100 Interface

Namespace Microsoft.SqlServer.Dts.Runtime.Wrapper