CodeCommentStatementCollection.Remove(CodeCommentStatement) Metod

Definition

Tar bort det angivna CodeCommentStatement objektet från samlingen.

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)

Parametrar

value
CodeCommentStatement

Objektet CodeCommentStatement som ska tas bort från samlingen.

Undantag

Det angivna objektet hittades inte i samlingen.

Exempel

I följande exempel visas hur du använder Remove metoden för att ta bort ett CodeCommentStatement objekt från 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)

Gäller för