ConfigurationPropertyCollection.Remove(String) 方法
定义
从集合中移除配置属性。Removes a configuration property from the collection.
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。The ConfigurationProperty to remove.
返回
如果移除了指定的 ConfigurationProperty,则为 true;否则为 false。true if the specified ConfigurationProperty was removed; otherwise, false.
示例
下面的示例显示如何使用 Remove 方法。The following example shows how to use the Remove method.
下面的示例演示如何调用上述方法并保存对配置文件所做的更改。The following example shows how to call the above method and save the changes to the configuration file.
注解
返回值 false 指示指定的 ConfigurationProperty 对象未包含在集合中。A return value of false indicates that the specified ConfigurationProperty object was not contained within the collection.