次の方法で共有


CodeParameterDeclarationExpressionCollection.Insert メソッド

指定した CodeParameterDeclarationExpression をコレクション内の指定したインデックスの位置に挿入します。

Public Sub Insert( _
   ByVal index As Integer, _   ByVal value As CodeParameterDeclarationExpression _)
[C#]
public void Insert(intindex,CodeParameterDeclarationExpressionvalue);
[C++]
public: void Insert(intindex,CodeParameterDeclarationExpression* value);
[JScript]
public function Insert(
   index : int,value : CodeParameterDeclarationExpression);

パラメータ

使用例

 
' Inserts a CodeParameterDeclarationExpression at index 0 
' of the collection.
collection.Insert(0, New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))

[C#] 
// Inserts a CodeParameterDeclarationExpression at index 0 
// of the collection.
collection.Insert( 0, new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );

[C++] 
// Inserts a CodeParameterDeclarationExpression at index 0 
// of the collection.
collection->Insert( 0, new CodeParameterDeclarationExpression(__typeof(int), S"testIntArgument") );

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

CodeParameterDeclarationExpressionCollection クラス | CodeParameterDeclarationExpressionCollection メンバ | System.CodeDom 名前空間 | Add