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")

適用於