Bagikan melalui


CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Metode

Definisi

Menyisipkan objek yang ditentukan CodeCatchClause ke dalam koleksi pada indeks yang ditentukan.

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)

Parameter

index
Int32

Indeks berbasis nol tempat objek yang ditentukan harus disisipkan.

value
CodeCatchClause

Objek CodeCatchClause yang akan disisipkan.

Contoh

Contoh berikut menunjukkan cara menggunakan Insert metode untuk menambahkan CodeCatchClause objek ke 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"))

Berlaku untuk

Lihat juga