Export (0) Print
Expand All

IDataObject.EnumFormatEtc Method

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)

IEnumFORMATETC EnumFormatEtc (
	DATADIR 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.

For more information about IDataObject::EnumFormatEtc, see the MSDN Library.

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.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft