CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Methode

Definitie

Hiermee voegt u het opgegeven CodeCatchClause object in de verzameling in de opgegeven index in.

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)

Parameters

index
Int32

De op nul gebaseerde index waarin het opgegeven object moet worden ingevoegd.

value
CodeCatchClause

Het CodeCatchClause object dat moet worden ingevoegd.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de Insert methode gebruikt om een CodeCatchClause object toe te voegen aan een 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"))

Van toepassing op

Zie ook