ConfigurationLockCollection.Remove(String) Method

Definition

从集合中移除配置对象。Removes a configuration object from the collection.

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

Parameters

name
String

配置对象的名称。The name of the configuration object.

Exceptions

name 与集合中的现有配置对象不匹配时发生。Occurs when the name does not match an existing configuration object within the collection.

Examples

下面的代码示例演示如何使用 Remove 方法。The following code example demonstrates how to use the Remove method. 此代码示例是为 ConfigurationLockCollection 类提供的更大示例的一部分。This code example is part of a larger example provided for the ConfigurationLockCollection class.

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

Applies to