CodeParameterDeclarationExpressionCollection.Insert Metódus

Definíció

Beszúrja a megadott CodeParameterDeclarationExpression értéket a gyűjteménybe a megadott indexben.

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)

Paraméterek

index
Int32

A nulla alapú index, ahová a megadott objektumot be kell szúrni.

Példák

Az alábbi példa bemutatja, hogyan adhat hozzá objektumot Insert egy objektumhoz CodeParameterDeclarationExpressiona CodeParameterDeclarationExpressionCollection metódussal.

// 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"))

A következőre érvényes:

Lásd még