CodeStatementCollection.Remove(CodeStatement) 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 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)