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 = gcnew CompilerError( "Testfile.cs",5,10,"CS0001","Example error text" );
collection->Remove( error );
// 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])

적용 대상