Поделиться через


Метод ProjectVariablesWrapper.Add

Adds a specified IDTSVariable100 object to the ProjectVariablesWrapper instance.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Function Add ( _
    bstrName As String, _
    bReadOnly As Boolean, _
    bstrNamespace As String, _
    vValue As Object _
) As IDTSVariable100
'Применение
Dim instance As ProjectVariablesWrapper 
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)
public IDTSVariable100 Add(
    string bstrName,
    bool bReadOnly,
    string bstrNamespace,
    Object vValue
)
public:
virtual IDTSVariable100^ Add(
    String^ bstrName, 
    bool bReadOnly, 
    String^ bstrNamespace, 
    Object^ vValue
) sealed
abstract Add : 
        bstrName:string * 
        bReadOnly:bool * 
        bstrNamespace:string * 
        vValue:Object -> IDTSVariable100  
override Add : 
        bstrName:string * 
        bReadOnly:bool * 
        bstrNamespace:string * 
        vValue:Object -> IDTSVariable100
public final function Add(
    bstrName : String, 
    bReadOnly : boolean, 
    bstrNamespace : String, 
    vValue : Object
) : IDTSVariable100

Параметры

  • bstrName
    Тип: System.String
    The name of the variable to add to the collection.
  • bReadOnly
    Тип: System.Boolean
    Indicates whether the variable is read-only or whether the variable can be modified.
  • 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 IDTSVariable100 that was added to the ProjectVariablesWrapper instance.

Реализует

IDTSVariables100.Add(String, Boolean, String, Object)

См. также

Справочник

ProjectVariablesWrapper Класс

Пространство имен Microsoft.SqlServer.Dts.Runtime