CompilerErrorCollection.Insert(Int32, CompilerError) Méthode

Définition

Insère le spécifié CompilerError dans la collection à l’index spécifié.

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)

Paramètres

index
Int32

Index de base zéro où l’erreur du compilateur doit être insérée.

value
CompilerError

À CompilerError insérer.

Exemples

L’exemple suivant montre comment utiliser la Insert méthode pour insérer un CompilerError objet dans un 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"))

S’applique à

Voir aussi