Share via


CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Método

Definição

Insere o objeto CodeCatchClause especificado na coleção no í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

O índice baseado em zero em que o objeto especificado deverá ser inserido.

value
CodeCatchClause

O objeto CodeCatchClause a ser inserido.

Exemplos

O exemplo a seguir demonstra como usar o Insert método para adicionar um CodeCatchClause objeto a um 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"))

Aplica-se a

Confira também