語言

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要移除。

傳回

true若移除指定ConfigurationProperty條件;否則,。 false

範例

以下範例說明如何使用此 Remove 方法。

以下範例說明如何呼叫上述方法並將變更儲存到設定檔中。

備註

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

適用於

另請參閱