CodeStatementCollection.Remove(CodeStatement) Methode

Definition

Entfernt das angegebene CodeStatement Objekt aus der Auflistung.

public:
 void Remove(System::CodeDom::CodeStatement ^ value);
public void Remove(System.CodeDom.CodeStatement value);
member this.Remove : System.CodeDom.CodeStatement -> unit
Public Sub Remove (value As CodeStatement)

Parameter

value
CodeStatement

The CodeStatement to remove from the collection.

Ausnahmen

Das angegebene Objekt wurde in der Auflistung nicht gefunden.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie Sie mithilfe der Remove Methode ein CodeStatement Objekt aus einem CodeStatementCollectionObjekt löschen.

// Removes the specified CodeStatement from the collection.
collection.Remove( testStatement );
' Removes the specified CodeStatement from the collection.
collection.Remove(testStatement)

Gilt für: