CodeCatchClauseCollection.Remove(CodeCatchClause) Methode

Definition

Entfernt das angegebene CodeCatchClause-Objekt aus der Auflistung.

public:
 void Remove(System::CodeDom::CodeCatchClause ^ value);
public void Remove (System.CodeDom.CodeCatchClause value);
member this.Remove : System.CodeDom.CodeCatchClause -> unit
Public Sub Remove (value As CodeCatchClause)

Parameter

value
CodeCatchClause

Das CodeCatchClause-Objekt, das aus der Auflistung entfernt werden soll.

Ausnahmen

Das angegebene Objekt wurde nicht in der Auflistung gefunden.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie die Remove -Methode verwendet wird, um ein CodeCatchClause -Objekt aus einer CodeCatchClauseCollectionzu löschen.

// Removes the specified CodeCatchClause from the collection.
CodeCatchClause^ clause = gcnew CodeCatchClause( "e" );
collection->Remove( clause );
// Removes the specified CodeCatchClause from the collection.
CodeCatchClause clause = new CodeCatchClause("e");
collection.Remove( clause );
' Removes the specified CodeCatchClause from the collection.
Dim clause As New CodeCatchClause("e")
collection.Remove(clause)

Gilt für: