ConfigurationPropertyCollection.Remove(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除集合中的一個配置屬性。
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
傳回
true若移除指定ConfigurationProperty條件;否則,。 false
範例
以下範例說明如何使用此 Remove 方法。
以下範例說明如何呼叫上述方法並將變更儲存到設定檔中。
備註
回傳值 false 表示指定的 ConfigurationProperty 物件不包含在集合中。