Bagikan melalui


CodeParameterDeclarationExpressionCollection.Insert Metode

Definisi

Menyisipkan yang ditentukan CodeParameterDeclarationExpression ke dalam koleksi pada indeks yang ditentukan.

public:
 void Insert(int index, System::CodeDom::CodeParameterDeclarationExpression ^ value);
public void Insert (int index, System.CodeDom.CodeParameterDeclarationExpression value);
member this.Insert : int * System.CodeDom.CodeParameterDeclarationExpression -> unit
Public Sub Insert (index As Integer, value As CodeParameterDeclarationExpression)

Parameter

index
Int32

Indeks berbasis nol tempat objek yang ditentukan harus disisipkan.

Contoh

Contoh berikut menunjukkan cara menggunakan Insert metode untuk menambahkan CodeParameterDeclarationExpression objek ke CodeParameterDeclarationExpressionCollection.

// Inserts a CodeParameterDeclarationExpression at index 0 
// of the collection.
collection->Insert( 0, gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) );
// Inserts a CodeParameterDeclarationExpression at index 0
// of the collection.
collection.Insert( 0, new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
' Inserts a CodeParameterDeclarationExpression at index 0 
' of the collection.
collection.Insert(0, New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))

Berlaku untuk

Lihat juga