CodeParameterDeclarationExpressionCollection.Insert Метод

Определение

Вставляет указанный CodeParameterDeclarationExpression объект в коллекцию по указанному индексу.

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)

Параметры

index
Int32

Отсчитываемый от нуля индекс, в который следует вставить указанный объект.

Примеры

В следующем примере показано, как использовать Insert метод для добавления CodeParameterDeclarationExpression объекта в 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"))

Применяется к

См. также раздел