Add 方法

Adds a Configuration object to the end of the collection.

命名空间:  Microsoft.SqlServer.Dts.Runtime
程序集:  Microsoft.SqlServer.ManagedDTS(在 Microsoft.SqlServer.ManagedDTS.dll 中)

语法

声明
Public Function Add As Configuration
用法
Dim instance As Configurations
Dim returnValue As Configuration

returnValue = instance.Add()
public Configuration Add()
public:
Configuration^ Add()
member Add : unit -> Configuration 
public function Add() : Configuration

示例

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