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
public PkgVariable Add (
string name,
string datatype,
Object val
)
public:
PkgVariable^ Add (
String^ name,
String^ datatype,
Object^ val
)
public PkgVariable Add (
String name,
String datatype,
Object val
)
public function Add (
name : String,
datatype : String,
val : Object
) : PkgVariable
Parameters
- name
The name of the PkgVariable to be added.
- datatype
The data type of the PkgVariable to be added.
- val
The value of the PkgVariable to be added.
Return Value
A new PkgVariable.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
VariablesCollection Class
VariablesCollection Members
Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask Namespace