CodeStatementCollection.Remove(CodeStatement) Metodo

Definizione

Rimuove l'oggetto specificato CodeStatement dall'insieme.

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)

Parametri

value
CodeStatement

Oggetto CodeStatement da rimuovere dalla raccolta.

Eccezioni

L'oggetto specificato non viene trovato nell'insieme.

Esempio

Nell'esempio seguente viene illustrato come utilizzare il Remove metodo per eliminare un CodeStatement oggetto da un oggetto CodeStatementCollection.

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

Si applica a