ClipboardObject.IDataObject.EnumFormatEtc(DATADIR) Method

Definition

Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to IDataObject.GetData(FORMATETC, STGMEDIUM) or IDataObject.SetData(FORMATETC, STGMEDIUM, Boolean).

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

Parameters

direction
DATADIR

A value from the DATADIR enumeration that specifies the direction of the data.

Returns

This method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following: ValueDescriptionS_OKThe enumerator object was successfully created.E_NOTIMPLThe direction specified by the direction parameter is not supported.OLE_S_USEREGRequests that OLE enumerate the formats from the registry.

Implements

Applies to