CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) Méthode

Définition

Insère une CodeTypeReference dans la collection à l’index spécifié.

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)

Paramètres

index
Int32

Index de base zéro où l’élément doit être inséré.

Exemples

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

S’applique à

Voir aussi