Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IDataObject.EnumFormatEtc Method

Note: This method is new in the .NET Framework version 2.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)

IEnumFORMATETC EnumFormatEtc (
	DATADIR direction
)
IEnumFORMATETC EnumFormatEtc (
	DATADIR direction
)
function EnumFormatEtc (
	direction : DATADIR
) : IEnumFORMATETC

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft