Επεξεργασία

Κοινή χρήση μέσω


IDataObject.EnumFormatEtc(DATADIR) Method

Definition

Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to GetData(FORMATETC, STGMEDIUM) or 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

Parameters

direction
DATADIR

One of the DATADIR values 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:

Value Description
S_OK The enumerator object was successfully created.
E_NOTIMPL The direction specified by the direction parameter is not supported.
OLE_S_USEREG Requests that OLE enumerate the formats from the registry.

Remarks

For more information, see IDataObject::EnumFormatEtc method.

Applies to