CodeStatementCollection.Remove(CodeStatement) Metoda

Definice

Odebere zadaný CodeStatement objekt z kolekce.

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)

Parametry

value
CodeStatement

Chcete-li CodeStatement odebrat z kolekce.

Výjimky

Zadaný objekt není v kolekci nalezen.

Příklady

Následující příklad ukazuje, jak použít metodu Remove k odstranění objektu CodeStatement z objektu CodeStatementCollection.

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

Platí pro