次の方法で共有


CodeAttributeArgumentCollection.Insert メソッド

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

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

パラメータ

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

使用例

 
' Inserts a CodeAttributeArgument at index 0 of the collection.
collection.Insert(0, New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True)))

[C#] 
// Inserts a CodeAttributeArgument at index 0 of the collection.
collection.Insert( 0, new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)) );

[C++] 
// Inserts a CodeAttributeArgument at index 0 of the collection.
collection->Insert( 0, new CodeAttributeArgument(S"Test Boolean Argument", new CodePrimitiveExpression(__box(true))) );

[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 ファミリ

参照

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