Partager via


VariablesCollection.LoadFromString Method

Creates and adds one or more elements, from a delimited string, to the end of the collection.

Espace de noms: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
Assembly: Microsoft.SqlServer.Exec80PackageTask (in microsoft.sqlserver.exec80packagetask.dll)

Syntaxe

'Déclaration
Public Shared Function LoadFromString ( _
    str As String _
) As VariablesCollection
public static VariablesCollection LoadFromString (
    string str
)
public:
static VariablesCollection^ LoadFromString (
    String^ str
)
public static VariablesCollection LoadFromString (
    String str
)
public static function LoadFromString (
    str : String
) : VariablesCollection

Paramètres

  • str
    A delimited string using the following syntax:

    str::= variable**;variable;**...

    variable::=name**,datatype,**value

    The name argument contains the name of the PkgVariable to be added.

    The datatype argument contains the data type of the PkgVariable to be added.

    The value argument contains the value of the PkgVariable to be added.

    Any literal comma (,) or semicolon (;) characters included as part of any argument must be prefaced with a backslash (\) character.

Valeur de retour

A VariablesCollection object containing the PkgVariable objects loaded from the string specified in str.

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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