CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) Yöntem

Tanım

Belirtilen dizindeki koleksiyona bir CodeTypeReference ekler.

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)

Parametreler

index
Int32

Öğenin eklenmesi gereken sıfır tabanlı dizin.

value
CodeTypeReference

Eklenecek CodeTypeReference öğesi.

Örnekler

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

Şunlara uygulanır

Ayrıca bkz.