CodeCatchClauseCollection::Remove Method (CodeCatchClause^)

 

Removes the specified CodeCatchClause object from the collection.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
void Remove(
	CodeCatchClause^ value
)

Parameters

value
Type: System.CodeDom::CodeCatchClause^

The CodeCatchClause object to remove from the collection.

Exception Condition
ArgumentException

The specified object is not found in the collection.

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

.NET Framework
Available since 1.1
Return to top
Show: