Compartir a través de


VariablesCollection.Add Method

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

Espacio de nombres: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
Ensamblado: Microsoft.SqlServer.Exec80PackageTask (in microsoft.sqlserver.exec80packagetask.dll)

Sintaxis

'Declaración
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

Parámetros

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

Valor devuelto

A new PkgVariable.

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

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