Partager via


Package.ImportConfigurationFile Method

Loads a configuration file associated with the package.

Espace de noms: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntaxe

'Déclaration
Public Sub ImportConfigurationFile ( _
    str As String _
)
public void ImportConfigurationFile (
    string str
)
public:
void ImportConfigurationFile (
    String^ str
)
public void ImportConfigurationFile (
    String str
)
public function ImportConfigurationFile (
    str : String
)

Paramètres

  • str
    The path and name of the file that contains the configuration.

Exemple

The following code example shows the ImportConfigurationFile method. The string parameter contains the path to the configuration.

package.ImportConfigurationFile(@"c:\myConfiguration.xml")
package.ImportConfigurationFile("c:\myConfiguration.xml")

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

Package Class
Package Members
Microsoft.SqlServer.Dts.Runtime Namespace