CodeExpressionCollection.Insert(Int32, CodeExpression) CodeExpressionCollection.Insert(Int32, CodeExpression) CodeExpressionCollection.Insert(Int32, CodeExpression) CodeExpressionCollection.Insert(Int32, CodeExpression) Method

Definizione

Inserisce l'oggetto CodeExpression specificato nella raccolta in corrispondenza dell'indice specificato.Inserts the specified CodeExpression object into the collection at the specified index.

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

Parametri

index
Int32 Int32 Int32 Int32

Indice in base zero in corrispondenza del quale inserire l'oggetto specificato.The zero-based index where the specified object should be inserted.

Esempi

Nell'esempio seguente viene illustrato come utilizzare il Insert metodo per aggiungere un CodeExpression oggetto a un CodeExpressionCollectionoggetto.The following example demonstrates how to use the Insert method to add a CodeExpression object to a CodeExpressionCollection.

// Inserts a CodeExpression at index 0 of the collection.
collection->Insert( 0, gcnew CodePrimitiveExpression( true ) );
// Inserts a CodeExpression at index 0 of the collection.
collection.Insert( 0, new CodePrimitiveExpression(true) );
' Inserts a CodeExpression at index 0 of the collection.
collection.Insert(0, New CodePrimitiveExpression(True))

Si applica a

Vedi anche