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

適用対象