Share via


CodeCatchClauseCollection.Remove(CodeCatchClause) Método

Definição

Remove o objeto CodeCatchClause especificado da coleção.

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)

Parâmetros

value
CodeCatchClause

O objeto CodeCatchClause a ser removido da coleção.

Exceções

O objeto especificado não foi localizado na coleção.

Exemplos

O exemplo a seguir demonstra como usar o Remove método para excluir um CodeCatchClause objeto de um CodeCatchClauseCollection.

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

Aplica-se a