CodeCommentStatementCollection.Remove(CodeCommentStatement) Metoda

Definice

Odebere zadaný CodeCommentStatement objekt z kolekce.

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

Objekt CodeCommentStatement , který se má z kolekce odebrat.

Výjimky

Zadaný objekt není v kolekci nalezen.

Příklady

Následující příklad ukazuje, jak použít metodu Remove k odstranění objektu CodeCommentStatement z objektu 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)

Platí pro