CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Método

Definición

Inserta el objeto especificado CodeCatchClause en la colección en el índice especificado.

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)

Parámetros

index
Int32

Índice de base cero donde se debe insertar el objeto especificado.

value
CodeCatchClause

Objeto CodeCatchClause que se va a insertar.

Ejemplos

En el ejemplo siguiente se muestra cómo usar el Insert método para agregar un CodeCatchClause objeto a .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"))

Se aplica a

Consulte también