CodeCommentStatementCollection.Remove(CodeCommentStatement) Metodo

Definizione

Rimuove l'oggetto specificato CodeCommentStatement dall'insieme.

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)

Parametri

value
CodeCommentStatement

Oggetto CodeCommentStatement da rimuovere dall'insieme.

Eccezioni

L'oggetto specificato non viene trovato nell'insieme.

Esempio

Nell'esempio seguente viene illustrato come utilizzare il Remove metodo per eliminare un CodeCommentStatement oggetto da 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)

Si applica a