CodeCatchClauseCollection.Remove(CodeCatchClause) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified CodeCatchClause object from the collection.
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)
Parameters
- value
- CodeCatchClause
The CodeCatchClause object to remove from the collection.
Exceptions
The specified object is not found in the collection.
Examples
The following example demonstrates how to use the Remove method to delete a CodeCatchClause object from a 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)
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.