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

Ajoute un objet à la collection.

Syntaxe

HRESULT AddElement(
  [in] IUnknown *pUnkElement
);

Paramètres

[in] pUnkElement

Pointeur vers l’interface IUnknown de l’objet.

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

Remarques

Si pUnkElement a la valeur NULL, un pointeur NULL est ajouté à la collection.

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