CodeCatchClauseCollection.Remove(CodeCatchClause) Metódus

Definíció

Eltávolítja a megadott CodeCatchClause objektumot a gyűjteményből.

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)

Paraméterek

value
CodeCatchClause

A CodeCatchClause gyűjteményből eltávolítandó objektum.

Kivételek

A megadott objektum nem található a gyűjteményben.

Példák

Az alábbi példa bemutatja, hogyan lehet a Remove metódussal törölni egy objektumot egy CodeCatchClauseCodeCatchClauseCollection objektumból.

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

A következőre érvényes: