语言

ConfigurationLockCollection.Remove(String) 方法

定义

从集合中删除配置对象。

public:
 void Remove(System::String ^ name);
public void Remove(string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)

参数

name
String

配置对象的名称。

例外

当 name 集合中的现有配置对象不匹配时发生。

示例

下面的代码示例演示如何使用 Remove 该方法。 该代码示例是 ConfigurationLockCollection 类中的一个较大示例的一部分。

// Remove a configuration object 
// from the collection.
lockedAttribList.Remove("cookieless");
' Remove a configuration object 
' from the collection.
lockedAttribList.Remove("cookieless")

适用于