Share via


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

Definition

Adds a IDTSVariable100 object to the collection.

public:
 Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSVariable100 ^ Add(System::String ^ bstrName, bool bReadOnly, System::String ^ bstrNamespace, System::Object ^ vValue);
[System.Runtime.InteropServices.DispId(2)]
public Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariable100 Add (string bstrName, bool bReadOnly, string bstrNamespace, object vValue);
[<System.Runtime.InteropServices.DispId(2)>]
abstract member Add : string * bool * string * obj -> Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariable100
Public Function Add (bstrName As String, bReadOnly As Boolean, bstrNamespace As String, vValue As Object) As IDTSVariable100

Parameters

bstrName
String

The name of the package, task, or container variable to add to the collection.

bReadOnly
Boolean

true to indicate that the variable is read-only; otherwise, false.

bstrNamespace
String

The namespace for the variable.

vValue
Object

The design-time value of the variable.

Returns

The added IDTSVariable100 object to the collection.

Attributes

Remarks

For more information, see Variables.

Applies to