Configurations.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a Configuration object to the end of the collection.
public:
Microsoft::SqlServer::Dts::Runtime::Configuration ^ Add();
public Microsoft.SqlServer.Dts.Runtime.Configuration Add ();
member this.Add : unit -> Microsoft.SqlServer.Dts.Runtime.Configuration
Public Function Add () As Configuration
Returns
Examples
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