XmlSchemaObjectCollection.Insert(Int32, XmlSchemaObject) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Insère un XmlSchemaObject dans le XmlSchemaObjectCollection.
public:
void Insert(int index, System::Xml::Schema::XmlSchemaObject ^ item);
public void Insert(int index, System.Xml.Schema.XmlSchemaObject item);
member this.Insert : int * System.Xml.Schema.XmlSchemaObject -> unit
Public Sub Insert (index As Integer, item As XmlSchemaObject)
Paramètres
- index
- Int32
Index de base zéro auquel un élément doit être inséré.
- item
- XmlSchemaObject
À XmlSchemaObject insérer.
Exceptions
Remarques
Si Count elle est déjà égale à la capacité, la capacité de la liste est doublée en réaffectant automatiquement le tableau interne avant l’insertion du nouvel élément.
S’il index est égal à Count, value est ajouté à la fin de XmlSchemaObjectCollection.
Les éléments qui suivent le point d’insertion descendent pour prendre en charge le nouvel élément.