Méthode IMFCollection ::InsertElementAt (mfobjects.h)

Ajoute un objet à l’index spécifié dans la collection.

Syntaxe

HRESULT InsertElementAt(
  [in] DWORD    dwIndex,
  [in] IUnknown *pUnknown
);

Paramètres

[in] dwIndex

Index de base zéro dans lequel l’objet sera ajouté à la collection.

[in] pUnknown

Objet à insérer.

Valeur retournée

Cette méthode retourne un code HRESULT. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.

Code de retour Description
S_OK
S_OK

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows Vista [applications de bureau | applications UWP]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau | applications UWP]
Plateforme cible Windows
En-tête mfobjects.h (inclure Mfidl.h)
Bibliothèque Mfuuid.lib

Voir aussi

IMFCollection