IDataObject.EnumFormatEtc(DATADIR) Méthode

Définition

Crée un objet pour énumérer les FORMATETC structures d’un objet de données. Ces structures sont utilisées dans les appels à GetData(FORMATETC, STGMEDIUM) ou SetData(FORMATETC, STGMEDIUM, Boolean).

public:
 System::Runtime::InteropServices::ComTypes::IEnumFORMATETC ^ EnumFormatEtc(System::Runtime::InteropServices::ComTypes::DATADIR direction);
public System.Runtime.InteropServices.ComTypes.IEnumFORMATETC EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR direction);
abstract member EnumFormatEtc : System.Runtime.InteropServices.ComTypes.DATADIR -> System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
Public Function EnumFormatEtc (direction As DATADIR) As IEnumFORMATETC

Paramètres

direction
DATADIR

Une des DATADIR valeurs qui spécifie la direction des données.

Retours

Cette méthode prend en charge les valeurs de retour standard E_INVALIDARG et E_OUTOFMEMORY, ainsi que les éléments suivants :

Valeur Description
S_OK L’objet énumérateur a été créé avec succès.
E_NOTIMPL La direction spécifiée par le direction paramètre n’est pas prise en charge.
OLE_S_USEREG Demande à OLE d’énumérer les formats à partir du Registre.

Remarques

Pour plus d’informations, consultez la méthode IDataObject ::EnumFormatEtc.

S’applique à