Språk

ConfigurationLockCollection.Remove(String) Metod

Definition

Tar bort ett konfigurationsobjekt från samlingen.

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

Parametrar

name
String

Namnet på konfigurationsobjektet.

Undantag

Inträffar när name inte matchar ett befintligt konfigurationsobjekt i samlingen.

Exempel

I följande kodexempel visas hur du använder Remove metoden. Det här kodexemplet är en del av ett större exempel för ConfigurationLockCollection klassen.

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

Gäller för