CodeParameterDeclarationExpressionCollection.Insert メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した 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, new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
' Inserts a CodeParameterDeclarationExpression at index 0
' of the collection.
collection.Insert(0, New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))