CodeParameterDeclarationExpressionCollection.Insert Metodo

Definizione

Inserisce l'oggetto specificato CodeParameterDeclarationExpression nell'insieme in corrispondenza dell'indice specificato.

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)

Parametri

index
Int32

Indice in base zero in cui deve essere inserito l'oggetto specificato.

Esempio

Nell'esempio seguente viene illustrato come utilizzare il Insert metodo per aggiungere un CodeParameterDeclarationExpression oggetto a un oggetto CodeParameterDeclarationExpressionCollection.

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

Si applica a

Vedi anche