IDTSVariables100.Add(String, Boolean, String, Object) IDTSVariables100.Add(String, Boolean, String, Object) 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);
Public Function Add (bstrName As String, bReadOnly As Boolean, bstrNamespace As String, vValue As Object) As IDTSVariable100

Parameters

bstrName
String String String

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

bReadOnly
Boolean Boolean Boolean

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

bstrNamespace
String String String

The namespace for the variable.

vValue
Object Object Object

The design-time value of the variable.

Returns

The added IDTSVariable100 object to the collection.

Remarks

For more information, see Variables.

Applies to