CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) Methode

Definition

Fügt eine CodeTypeReference in die Auflistung am angegebenen Index 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, in den das Element eingefügt werden soll.

value
CodeTypeReference

Der einzufügende Text CodeTypeReference .

Beispiele

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