CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的索引處將 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
以零為基礎的索引,該項目應該插入其中。
- value
- 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)))