共用方式為


Configuration 類別

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

繼承階層

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

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public NotInheritable Class Configuration _
    Inherits DtsObject _
    Implements IDTSPersist, IDTSName
'用途
Dim instance As Configuration
public sealed class Configuration : DtsObject, 
    IDTSPersist, IDTSName
public ref class Configuration sealed : public DtsObject, 
    IDTSPersist, IDTSName
[<SealedAttribute>]
type Configuration =  
    class 
        inherit DtsObject 
        interface IDTSPersist 
        interface IDTSName 
    end
public final class Configuration extends DtsObject implements IDTSPersist, IDTSName

Configuration 型別公開下列成員。

屬性

  名稱 說明
公用屬性 ConfigurationString Gets or sets the location of the configuration.
公用屬性 ConfigurationType Gets or sets a value from the DTSConfigurationType that describes what kind of file the configuration information is stored in.
公用屬性 CreationName Returns the string that is used by the run-time engine to create an instance of the Configuration object and to add the object to the Configurations collection. This property is read-only.
公用屬性 Description Gets or sets the description of the configuration. This property is read-only.
公用屬性 ID Returns the ID assigned to the configuration. This property is read-only.
公用屬性 Name Gests or sets the name given to this configuration.
公用屬性 PackagePath Gets or sets the path of the package that the configuration applies to.

上層

方法

  名稱 說明
公用方法 Equals Determines whether two object instances are equal. (繼承自 DtsObject。)
公用方法 GetHashCode Returns the hash code for this instance. (繼承自 DtsObject。)
公用方法 GetType (繼承自 Object。)
公用方法 LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
公用方法 SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
公用方法 ToString (繼承自 Object。)

上層

備註

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 在封裝中使用變數.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dts.Runtime 命名空間