CodeStatementCollection.Remove(CodeStatement) Metod

Definition

Tar bort det angivna CodeStatement objektet från samlingen.

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)

Parametrar

value
CodeStatement

Att CodeStatement ta 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 CodeStatement objekt från en CodeStatementCollection.

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

Gäller för