CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Infogar det angivna CodeCatchClause objektet i samlingen vid det angivna indexet.
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)
Parametrar
- index
- Int32
Det nollbaserade index där det angivna objektet ska infogas.
- value
- CodeCatchClause
Objektet CodeCatchClause som ska infogas.
Exempel
I följande exempel visas hur du använder Insert metoden för att lägga till ett CodeCatchClause objekt i en 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"))