CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Método

Definición

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

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 debe insertarse 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, 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"))

Se aplica a

Consulte también