CodeCommentStatementCollection.Remove(CodeCommentStatement) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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)