共用方式為


Configuration Class

Represents a configuration class that contains information about how a package is configured. This class cannot be inherited.

命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

語法

'宣告
Public NotInheritable Class Configuration
    Inherits DtsObject
    Implements IDTSPersist, IDTSName
public sealed class Configuration : DtsObject, IDTSPersist, IDTSName
public ref class Configuration sealed : public DtsObject, IDTSPersist, IDTSName
public final class Configuration extends DtsObject implements IDTSPersist, IDTSName
public final class Configuration extends DtsObject implements IDTSPersist, IDTSName

備註

Configurations are useful when deploying packages to many different servers, and make it easy to move packages from development to production environments.

You can use variables to update packages dynamically, which enables you to customize package functionality and adapt packages to the environments in which they run. To update package properties at run time by using variables, map variables to package object properties, create configurations for the variables, deploy the configurations with the package, and then update the variable values in the configuration file to suit the new environment. At run time, the package automatically uses the updated values. This flexibility is useful when the packages that you have deployed connect to different servers, run different SQL statements, or run different child packages. For more information, see 建立封裝組態 and 在封裝中使用變數.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.Configuration

執行緒安全性

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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

Configuration Members
Microsoft.SqlServer.Dts.Runtime Namespace