Share via


CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Méthode

Définition

Insère l'objet CodeCatchClause indiqué dans la collection à l'index spécifié.

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

Paramètres

index
Int32

Index de base zéro dans lequel l'objet spécifié doit être inséré.

value
CodeCatchClause

Objet CodeCatchClause à insérer.

Exemples

L’exemple suivant montre comment utiliser la Insert méthode pour ajouter un CodeCatchClause objet à un CodeCatchClauseCollection.

// Inserts a CodeCatchClause at index 0 of the collection.
collection->Insert( 0, gcnew CodeCatchClause( "e" ) );
// Inserts a CodeCatchClause at index 0 of the collection.
collection.Insert( 0, new CodeCatchClause("e") );
' Inserts a CodeCatchClause at index 0 of the collection.
collection.Insert(0, New CodeCatchClause("e"))

S’applique à

Voir aussi