CodeCommentStatementCollection.Remove(CodeCommentStatement) Método

Definición

Quita el objeto especificado CodeCommentStatement de la colección.

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)

Parámetros

value
CodeCommentStatement

Objeto CodeCommentStatement que se va a quitar de la colección.

Excepciones

El objeto especificado no se encuentra en la colección.

Ejemplos

En el ejemplo siguiente se muestra cómo usar el Remove método para eliminar un CodeCommentStatement objeto de .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)

Se aplica a