Configurations.Add Method
Adds a Configuration object to the end of the collection.
Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
Sintaxis
'Declaración
Public Function Add As Configuration
public Configuration Add ()
public:
Configuration^ Add ()
public Configuration Add ()
public function Add () : Configuration
Ejemplo
The following example shows a Configuration being created and added to the Configurations collection of the package. The sample demonstrates setting the ConfigurationType and ConfigurationString properties after its creation.
Package p2 = new Package();
p2.EnableConfigurations = true;
Configuration c1 = p2.Configurations.Add();
c1.ConfigurationString = @"c:\conf.ini";
c1.ConfigurationType = DTSConfigurationType.IniFile;
// Insert more code here.
'Error: Converting Methods, Functions and Constructors
Seguridad para subprocesos
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.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
Configurations Class
Configurations Members
Microsoft.SqlServer.Dts.Runtime Namespace