CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Metodo

Definizione

Inserisce l'oggetto specificato CodeCatchClause nell'insieme in corrispondenza dell'indice specificato.

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)

Parametri

index
Int32

Indice in base zero in cui deve essere inserito l'oggetto specificato.

value
CodeCatchClause

Oggetto CodeCatchClause da inserire.

Esempio

Nell'esempio seguente viene illustrato come utilizzare il Insert metodo per aggiungere un CodeCatchClause oggetto a un oggetto 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"))

Si applica a

Vedi anche