CodeCommentStatementCollection.Remove(CodeCommentStatement) Metoda

Definicja

Usuwa określony CodeCommentStatement obiekt z kolekcji.

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)

Parametry

value
CodeCommentStatement

Obiekt CodeCommentStatement do usunięcia z kolekcji.

Wyjątki

Określony obiekt nie został znaleziony w kolekcji.

Przykłady

W poniższym przykładzie pokazano, jak za pomocą Remove metody usunąć CodeCommentStatement obiekt z obiektu CodeCommentStatementCollection.

// 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)

Dotyczy