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

Отсчитываемый от нуля индекс, в который следует вставить элемент.

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

Применяется к

См. также раздел