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
要 ConfigurationProperty 删除的。
返回
示例
以下示例演示如何使用 Remove 该方法。
以下示例演示如何调用上述方法并将更改保存到配置文件。
注解
一个返回值 false ,指示指定的 ConfigurationProperty 对象不包含在集合中。