CodeCommentStatementCollection.Remove(CodeCommentStatement) Метод

Определение

Удаляет указанный CodeCommentStatement объект из коллекции.

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)

Параметры

value
CodeCommentStatement

CodeCommentStatement Объект, который нужно удалить из коллекции.

Исключения

Указанный объект не найден в коллекции.

Примеры

В следующем примере показано, как использовать Remove метод для удаления CodeCommentStatement объекта из объекта 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)

Применяется к