IDataObject.EnumFormatEtc(DATADIR) 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.
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
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.