Share via


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

指定したオブジェクトの挿入位置を示す、0 から始まるインデックス。

次の例では、 メソッドを使用 Insert して オブジェクトを CodeParameterDeclarationExpression に追加する方法を CodeParameterDeclarationExpressionCollection示します。

// Inserts a CodeParameterDeclarationExpression at index 0 
// of the collection.
collection->Insert( 0, gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) );
// 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"))

適用対象

こちらもご覧ください