共用方式為


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 命名空間