CompilerErrorCollection.Remove(CompilerError) 메서드

정의

컬렉션에서 특정 CompilerError 개체를 제거합니다.

public:
 void Remove(System::CodeDom::Compiler::CompilerError ^ value);
public void Remove(System.CodeDom.Compiler.CompilerError value);
member this.Remove : System.CodeDom.Compiler.CompilerError -> unit
Public Sub Remove (value As CompilerError)

매개 변수

value
CompilerError

CompilerError 에서 제거할 항목입니다CompilerErrorCollection.

예외

컬렉션에서 지정한 개체를 찾을 수 없습니다.

예제

다음 예제에서는 .에서 항목을 제거하는 CompilerError 방법을 보여 줍니다 CompilerErrorCollection.

// Removes the specified CompilerError from the collection.
CompilerError error = new CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text");
collection.Remove( error );
' Removes the specified CompilerError from the collection.
Dim [error] As New CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text")
collection.Remove([error])

적용 대상