ImportConfigurationFile 方法

Loads a configuration file associated with the package.

命名空间:  Microsoft.SqlServer.Dts.Runtime
程序集:  Microsoft.SqlServer.ManagedDTS(在 Microsoft.SqlServer.ManagedDTS.dll 中)

语法

声明
Public Sub ImportConfigurationFile ( _
    str As String _
)
用法
Dim instance As Package
Dim str As String

instance.ImportConfigurationFile(str)
public void ImportConfigurationFile(
    string str
)
public:
void ImportConfigurationFile(
    String^ str
)
member ImportConfigurationFile : 
        str:string -> unit 
public function ImportConfigurationFile(
    str : String
)

参数

示例

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")