ConfigurationSectionGroupCollection.Add 方法

定义

public:
 void Add(System::String ^ name, System::Configuration::ConfigurationSectionGroup ^ sectionGroup);
public void Add (string name, System.Configuration.ConfigurationSectionGroup sectionGroup);
member this.Add : string * System.Configuration.ConfigurationSectionGroup -> unit
Public Sub Add (name As String, sectionGroup As ConfigurationSectionGroup)

参数

name
String

要添加的 ConfigurationSectionGroup 对象的名称。

sectionGroup
ConfigurationSectionGroup

要添加的 ConfigurationSectionGroup 对象。

注解

默认情况下,如果指定的 ConfigurationSectionGroup 对象尚未包含在集合中,则此方法会添加该对象。

适用于