CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) 方法

定義

在指定的索引處將 a 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

以零為基礎的索引,該項目應該插入其中。

範例

// 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)))

適用於

另請參閱