ConfigurationPropertyCollection.Remove(String) 方法

定義

移除集合中的組態屬性。

public:
 bool Remove(System::String ^ name);
public bool Remove (string name);
member this.Remove : string -> bool
Public Function Remove (name As String) As Boolean

參數

name
String

要移除的 ConfigurationProperty

傳回

如果指定的 ConfigurationProperty 已移除,則為 true,否則為 false

範例

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

下列範例示範如何呼叫上述方法,並將變更儲存至組態檔。

備註

false 傳回值表示指定的 ConfigurationProperty 物件未包含在集合中。

適用於

另請參閱