Classe Configuration
Represents a configuration class that contains information about how a package is configured. This class cannot be inherited.
Hierarquia de herança
System. . :: . .Object
Microsoft.SqlServer.Dts.Runtime. . :: . .DtsObject
Microsoft.SqlServer.Dts.Runtime..::..Configuration
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (em Microsoft.SqlServer.ManagedDTS.dll)
Sintaxe
'Declaração
Public NotInheritable Class Configuration _
Inherits DtsObject _
Implements IDTSPersist, IDTSName
'Uso
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
O tipo Configuration expõe os membros a seguir.
Propriedades
Nome | Descrição | |
---|---|---|
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. |
Início
Métodos
Nome | Descrição | |
---|---|---|
Equals | Determines whether two object instances are equal. (Herdado de DtsObject.) | |
Finalize | (Herdado de Object.) | |
GetHashCode | Returns the hash code for this instance. (Herdado de DtsObject.) | |
GetType | (Herdado de Object.) | |
LoadFromXML | This method is not callable by your application code. To load a package saved as .xml, use the Application..::..LoadPackage method. | |
MemberwiseClone | (Herdado de Object.) | |
SaveToXML | This method is not callable by your application code. To save a package as .xml, use the Application..::..SaveToXml method. | |
ToString | (Herdado de Object.) |
Início
Comentários
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 Criando configurações do pacote and Usando variáveis em pacotes.
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.