CodeCatchClauseCollection.Remove(CodeCatchClause) Metodo

Definizione

Rimuove l'oggetto specificato CodeCatchClause dall'insieme.

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)

Parametri

value
CodeCatchClause

Oggetto CodeCatchClause da rimuovere dall'insieme.

Eccezioni

L'oggetto specificato non viene trovato nell'insieme.

Esempio

Nell'esempio seguente viene illustrato come utilizzare il Remove metodo per eliminare un CodeCatchClause oggetto da un oggetto CodeCatchClauseCollection.

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

Si applica a