Condividi tramite


VariablesCollection.Add Method

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

Spazio dei nomi: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
Assembly : Microsoft.SqlServer.Exec80PackageTask (in microsoft.sqlserver.exec80packagetask.dll)

Sintassi

'Dichiarazione
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

Parametri

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

Valore restituito

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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