IDataObject.EnumFormatEtc Method
.NET Framework 3.0
Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to GetData or SetData.
Namespace: System.Runtime.InteropServices.ComTypes
Assembly: System (in system.dll)
Assembly: System (in system.dll)
'Declaration Function EnumFormatEtc ( _ direction As DATADIR _ ) As IEnumFORMATETC 'Usage Dim instance As IDataObject Dim direction As DATADIR Dim returnValue As IEnumFORMATETC returnValue = instance.EnumFormatEtc(direction)
IEnumFORMATETC EnumFormatEtc ( DATADIR direction )
function EnumFormatEtc (
direction : DATADIR
) : IEnumFORMATETC
Not applicable.
Parameters
- direction
One of the DATADIR values that specifies the direction of the data.
Return Value
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. |
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: