IDataObject.EnumFormatEtc(Int32, IntPtr) 方法

定义

检索指向一个对象的指针,该对象可以枚举此实现所支持的 FORMATETC 枚举数类型。Retrieves a pointer to an object that can enumerate the FORMATETC enumerator types that this implementation supports.

public:
 int EnumFormatEtc(int a, IntPtr b);
public int EnumFormatEtc (int a, IntPtr b);
abstract member EnumFormatEtc : int * nativeint -> int
Public Function EnumFormatEtc (a As Integer, b As IntPtr) As Integer

参数

a
Int32

DATADIR 中的一个值,它指示数据的方向。A value from the DATADIR indicating the direction of the data.

b
IntPtr

接收 IEnumFORMATETC 的输出变量地址。An output variable address receiving the IEnumFORMATETC.

返回

Int32

EnumFormatEtc 方法支持 E_INVALIDARG 和 E_OUTOFMEMORY 等标准返回值以及下面的返回值:The EnumFormatEtc method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following return values:

| 返回值 | 说明 | | --- | --- | | S_OK | 对 EnumFormatEtc 方法的此次调用成功创建了枚举器对象。| Return value | Description | | --- | --- | | S_OK | This call to the EnumFormatEtc method successfully created the enumerator object. | | E_NOTIMPL | 不支持指定的方向。| | E_NOTIMPL | The specified direction is not supported. | | OLE_S_USEREG | 向 OLE 发出的枚举注册表中的格式的请求。| | OLE_S_USEREG | A request to OLE to enumerate the formats from the registry. |

注解

有关通过 IDataObject 接口和 Microsoft 管理控制台 (mmc) 进行编程的详细信息,请参阅 Mmc 程序员指南For more information about programming with the IDataObject interface and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.

适用于