CompilerErrorCollection.Insert(Int32, CompilerError) Metoda

Definice

Vloží zadaný CompilerError objekt do kolekce v zadaném indexu.

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)

Parametry

index
Int32

Index založený na nule, do kterého by se měla vložit chyba kompilátoru.

value
CompilerError

Vložte CompilerError ho.

Příklady

Následující příklad ukazuje, jak použít metodu Insert vložit CompilerError objekt do CompilerErrorCollection.

// 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"))

Platí pro

Viz také