Creates an object for enumerating the System.Runtime.InteropServices.ComTypes.FORMATETC structures for a data object. These structures are used in calls to IDataObject.GetData(FORMATETC@, STGMEDIUM@) or IDataObject.SetData(FORMATETC@, STGMEDIUM@, bool).
- direction
- One of the System.Runtime.InteropServices.ComTypes.DATADIR values that specifies the direction of the data.
This method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following:
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.