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).
- 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:
The enumerator object was successfully created.
The direction specified by the direction parameter is not supported.
Requests that OLE enumerate the formats from the registry.