Share via


CodeCommentStatementCollection.Remove(CodeCommentStatement) Méthode

Définition

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

public:
 void Remove(System::CodeDom::CodeCommentStatement ^ value);
public void Remove (System.CodeDom.CodeCommentStatement value);
member this.Remove : System.CodeDom.CodeCommentStatement -> unit
Public Sub Remove (value As CodeCommentStatement)

Paramètres

value
CodeCommentStatement

Objet CodeCommentStatement à 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 CodeCommentStatement objet du CodeCommentStatementCollection.

// Removes the specified CodeCommentStatement from the collection.
CodeCommentStatement^ comment = gcnew CodeCommentStatement( "Test comment" );
collection->Remove( comment );
// Removes the specified CodeCommentStatement from the collection.
CodeCommentStatement comment = new CodeCommentStatement("Test comment");
collection.Remove( comment );
' Removes the specified CodeCommentStatement from the collection.
Dim comment As New CodeCommentStatement("Test comment")
collection.Remove(comment)

S’applique à