CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Metoda

Definice

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

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)

Parametry

index
Int32

Index založený na nule, do kterého by měl být vložen zadaný objekt.

value
CodeCatchClause

Objekt CodeCatchClause , který chcete vložit.

Příklady

Následující příklad ukazuje, jak použít metodu InsertCodeCatchClause přidat objekt do objektu CodeCatchClauseCollection.

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

Platí pro

Viz také