CodeCatchClauseCollection.Remove(CodeCatchClause) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Tar bort det angivna CodeCatchClause objektet från samlingen.
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)
Parametrar
- value
- CodeCatchClause
Objektet CodeCatchClause som ska tas bort från samlingen.
Undantag
Det angivna objektet hittades inte i samlingen.
Exempel
I följande exempel visas hur du använder Remove metoden för att ta bort ett CodeCatchClause objekt från en 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)