CodeParameterDeclarationExpressionCollection.Insert Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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.
A CodeParameterDeclarationExpression beszúrandó.
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"))