VariablesCollection.Add Method

Creates and adds a PkgVariable to the end of the collection.

Namespace:  Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
Assembly:  Microsoft.SqlServer.Exec80PackageTask (in Microsoft.SqlServer.Exec80PackageTask.dll)

Syntax

'Declaration
Public Function Add ( _
    name As String, _
    datatype As String, _
    val As Object _
) As PkgVariable
'Usage
Dim instance As VariablesCollection
Dim name As String
Dim datatype As String
Dim val As Object
Dim returnValue As PkgVariable

returnValue = instance.Add(name, datatype, _
    val)
public PkgVariable Add(
    string name,
    string datatype,
    Object val
)
public:
PkgVariable^ Add(
    String^ name, 
    String^ datatype, 
    Object^ val
)
member Add : 
        name:string * 
        datatype:string * 
        val:Object -> PkgVariable 
public function Add(
    name : String, 
    datatype : String, 
    val : Object
) : PkgVariable

Parameters