CodeCatchClauseCollection.Remove(CodeCatchClause) Método

Definição

Remove o objeto especificado CodeCatchClause 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 CodeCatchClause objeto a ser removido da coleção.

Exceções

O objeto especificado não é encontrado 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 = 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