Freigeben über


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

Parameter

  • datatype
    The data type of the PkgVariable to be added.
  • val
    The value of the PkgVariable to be added.

Rückgabewert

A new PkgVariable.

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

VariablesCollection Class
VariablesCollection Members
Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask Namespace