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)

적용 대상