CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Beszúrja a megadott CodeCatchClause objektumot a megadott index gyűjteményébe.
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)
Paraméterek
- index
- Int32
A nulla alapú index, ahová a megadott objektumot be kell szúrni.
- value
- CodeCatchClause
A CodeCatchClause beszúrni kívánt objektum.
Példák
Az alábbi példa bemutatja, hogyan adhat hozzá objektumot Insert egy objektumhoz CodeCatchClausea CodeCatchClauseCollection metódussal.
// 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"))