ConfigurationPropertyCollection.Add(ConfigurationProperty) 方法

定義

將組態屬性加入集合。

public:
 void Add(System::Configuration::ConfigurationProperty ^ property);
public void Add (System.Configuration.ConfigurationProperty property);
member this.Add : System.Configuration.ConfigurationProperty -> unit
Public Sub Add (property As ConfigurationProperty)

參數

property
ConfigurationProperty

要加入的 ConfigurationProperty

範例

下列範例會示範如何使用 Add 方法。

備註

根據預設, Add 如果集合中尚未包含指定 ConfigurationProperty 物件,則方法會新增該物件。

適用於

另請參閱