CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) Metodo

Definizione

Inserisce un oggetto CodeTypeReference nell'insieme in corrispondenza dell'indice specificato.

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)

Parametri

index
Int32

Indice in base zero in cui deve essere inserito l'elemento.

value
CodeTypeReference

Oggetto CodeTypeReference da inserire.

Esempio

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

Si applica a

Vedi anche