DataObject.IDataObject.EnumFormatEtc(DATADIR) Méthode

Définition

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

 virtual System::Runtime::InteropServices::ComTypes::IEnumFORMATETC ^ System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc(System::Runtime::InteropServices::ComTypes::DATADIR dwDirection) = System::Runtime::InteropServices::ComTypes::IDataObject::EnumFormatEtc;
System.Runtime.InteropServices.ComTypes.IEnumFORMATETC IDataObject.EnumFormatEtc (System.Runtime.InteropServices.ComTypes.DATADIR dwDirection);
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc : System.Runtime.InteropServices.ComTypes.DATADIR -> System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
override this.System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc : System.Runtime.InteropServices.ComTypes.DATADIR -> System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
Function EnumFormatEtc (dwDirection As DATADIR) As IEnumFORMATETC Implements IDataObject.EnumFormatEtc

Paramètres

dwDirection
DATADIR

L'une des valeurs DATADIR spécifiant la direction des données.

Retours

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

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

Implémente

Remarques

Ce membre est une implémentation d'un membre d'interface explicite. Il peut être utilisé uniquement lorsque le DataObject est casté en une interface IDataObject.

S’applique à