Freigeben über


CodeCatchClauseCollection.Remove-Methode

Entfernt die angegebene CodeCatchClause aus der Auflistung.

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

Syntax

'Declaration
Public Sub Remove ( _
    value As CodeCatchClause _
)
'Usage
Dim instance As CodeCatchClauseCollection
Dim value As CodeCatchClause

instance.Remove(value)
public void Remove (
    CodeCatchClause value
)
public:
void Remove (
    CodeCatchClause^ value
)
public void Remove (
    CodeCatchClause value
)
public function Remove (
    value : CodeCatchClause
)

Parameter

Ausnahmen

Ausnahmetyp Bedingung

ArgumentException

Das angegebene Objekt wurde nicht in der Auflistung gefunden.

Beispiel

' Removes the specified CodeCatchClause from the collection.
Dim clause As New 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.
CodeCatchClause^ clause = gcnew CodeCatchClause( "e" );
collection->Remove( clause );
// Removes the specified CodeCatchClause from the collection.
CodeCatchClause clause = new CodeCatchClause("e");
collection.Remove(clause);

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

CodeCatchClauseCollection-Klasse
CodeCatchClauseCollection-Member
System.CodeDom-Namespace