CodeCommentStatementCollection.Remove(CodeCommentStatement) Metódus

Definíció

Eltávolítja a megadott CodeCommentStatement objektumot a gyűjteményből.

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éterek

value
CodeCommentStatement

A CodeCommentStatement gyűjteményből eltávolítandó objektum.

Kivételek

A megadott objektum nem található a gyűjteményben.

Példák

Az alábbi példa bemutatja, hogyan lehet a Remove metódussal törölni egy objektumot CodeCommentStatement a CodeCommentStatementCollectionrendszerből.

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

A következőre érvényes: