CompilerErrorCollection.Insert(Int32, CompilerError) 메서드

정의

지정된 CompilerError를 컬렉션의 지정된 인덱스에 삽입합니다.

public:
 void Insert(int index, System::CodeDom::Compiler::CompilerError ^ value);
public void Insert (int index, System.CodeDom.Compiler.CompilerError value);
member this.Insert : int * System.CodeDom.Compiler.CompilerError -> unit
Public Sub Insert (index As Integer, value As CompilerError)

매개 변수

index
Int32

컴파일러 오류를 삽입해야 하는 인덱스이며 0부터 시작합니다.

value
CompilerError

삽입할 CompilerError입니다.

예제

다음 예제에서는 사용 Insert 하는 방법에 설명 합니다 에 개체를 삽입 하는 CompilerError 메서드입니다 CompilerErrorCollection.

// Inserts a CompilerError at index 0 of the collection.
collection->Insert( 0, gcnew CompilerError( "Testfile.cs",5,10,"CS0001","Example error text" ) );
// Inserts a CompilerError at index 0 of the collection.
collection.Insert( 0, new CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text") );
' Inserts a CompilerError at index 0 of the collection.
collection.Insert(0, New CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text"))

적용 대상

추가 정보