Delen via


ClipboardObject.IDataObject.EnumFormatEtc Method

Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to IDataObject.GetData or IDataObject.SetData.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Private Function EnumFormatEtc ( _
    direction As DATADIR _
) As IEnumFORMATETC Implements IDataObject.EnumFormatEtc
IEnumFORMATETC IDataObject.EnumFormatEtc(
    DATADIR direction
)
private:
virtual IEnumFORMATETC^ EnumFormatEtc(
    DATADIR direction
) sealed = IDataObject::EnumFormatEtc
private abstract EnumFormatEtc : 
        direction:DATADIR -> IEnumFORMATETC  
private override EnumFormatEtc : 
        direction:DATADIR -> IEnumFORMATETC
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
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.

Implements

IDataObject.EnumFormatEtc(DATADIR)

Remarks

This method delegates the call to the corresponding EnumFormatEtc from the System.Runtime.InteropServices.ComTypes namespace, assuming that the clipboard object is wrapping an existing IDataObject.

.NET Framework Security

See Also

Reference

ClipboardObject Class

Microsoft.VisualStudio.Data.Framework Namespace