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
- name
Type: System.String
The name of the PkgVariable to be added.
- datatype
Type: System.String
The data type of the PkgVariable to be added.
- val
Type: System.Object
The value of the PkgVariable to be added.
Return Value
Type: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.PkgVariable
A new PkgVariable.