Share via


CodeStatementCollection.Remove(CodeStatement) Méthode

Définition

Supprime l'objet CodeStatement spécifié de la collection.

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)

Paramètres

value
CodeStatement

CodeStatement à supprimer de la collection.

Exceptions

L'objet spécifié est introuvable dans la collection.

Exemples

L’exemple suivant montre comment utiliser la Remove méthode pour supprimer un CodeStatement objet d’un 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)

S’applique à