Configurations.Add Method ()

 

Applies To: SQL Server 2016 Preview

Adds a Configuration object to the end of the collection.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

public Configuration Add()
public:
Configuration^ Add()
member Add : unit -> Configuration
Public Function Add As Configuration

Return Value

Type: Microsoft.SqlServer.Dts.Runtime.Configuration

Examples

Legacy Code Example

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 

See Also

Configurations Class
Microsoft.SqlServer.Dts.Runtime Namespace

Return to top