Package.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
)

参数

  • str
    类型:System.String
    The path and name of the file that contains the configuration.

示例

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

请参阅

参考

Package 类

Microsoft.SqlServer.Dts.Runtime 命名空间