CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) Methode

Definition

Fügt ein CodeTypeReference-Objekt am angegebenen Index in die Auflistung ein.

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)

Parameter

index
Int32

Der nullbasierte Index, an dem das Element eingefügt werden soll.

value
CodeTypeReference

Der einzufügende CodeTypeReference.

Beispiele

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

Gilt für:

Weitere Informationen