CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) 方法
定义
将 CodeTypeReference 插入到集合中的指定索引处。Inserts a CodeTypeReference into the collection at the specified index.
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
从零开始的索引,该项应插入此位置。The zero-based index where the item should be inserted.
- value
- CodeTypeReference
要插入的 CodeTypeReference。The CodeTypeReference to insert.
示例
// Inserts a CodeTypeReference at index 0 of the collection.
collection->Insert( 0, gcnew CodeTypeReference( bool::typeid ) );
// 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)))