共用方式為


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 物件尚未包含在集合中,這個方法就會加入指定的物件。

適用於