CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) メソッド

定義

指定したインデックス位置にあるコレクションに CodeTypeReference を挿入します。

public:
 void Insert(int index, System::CodeDom::CodeTypeReference ^ value);
public void Insert(int index, System.CodeDom.CodeTypeReference value);
member this.Insert : int * System.CodeDom.CodeTypeReference -> unit
Public Sub Insert (index As Integer, value As CodeTypeReference)

パラメーター

index
Int32

項目を挿入する 0 から始まるインデックス。

value
CodeTypeReference

挿入する CodeTypeReference

// Inserts a CodeTypeReference at index 0 of the collection.
collection.Insert( 0, new CodeTypeReference(typeof(bool)) );
' Inserts a CodeTypeReference at index 0 of the collection.
collection.Insert(0, New CodeTypeReference(GetType(Boolean)))

適用対象

こちらもご覧ください