CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Metódus

Definíció

Beszúrja a megadott CodeCatchClause objektumot a megadott index gyűjteményébe.

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éterek

index
Int32

A nulla alapú index, ahová a megadott objektumot be kell szúrni.

value
CodeCatchClause

A CodeCatchClause beszúrni kívánt objektum.

Példák

Az alábbi példa bemutatja, hogyan adhat hozzá objektumot Insert egy objektumhoz CodeCatchClausea CodeCatchClauseCollection metódussal.

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

A következőre érvényes:

Lásd még