CodeParameterDeclarationExpressionCollection.Insert Metoda

Definice

Vloží zadaný CodeParameterDeclarationExpression objekt do kolekce v zadaném indexu.

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)

Parametry

index
Int32

Index založený na nule, do kterého by měl být vložen zadaný objekt.

Příklady

Následující příklad ukazuje použití Insert metody k přidání objektu CodeParameterDeclarationExpression do objektu 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"))

Platí pro

Viz také