DataObject.IDataObject.EnumFormatEtc(DATADIR) 方法

定义

创建一个用于枚举数据对象的 FORMATETC 结构的对象。 这些结构用于对 GetData(FORMATETC, STGMEDIUM)SetData(FORMATETC, STGMEDIUM, Boolean) 的调用中。

 virtual System::Runtime::InteropServices::ComTypes::IEnumFORMATETC ^ System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc(System::Runtime::InteropServices::ComTypes::DATADIR dwDirection) = System::Runtime::InteropServices::ComTypes::IDataObject::EnumFormatEtc;
System.Runtime.InteropServices.ComTypes.IEnumFORMATETC IDataObject.EnumFormatEtc (System.Runtime.InteropServices.ComTypes.DATADIR dwDirection);
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc : System.Runtime.InteropServices.ComTypes.DATADIR -> System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
override this.System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc : System.Runtime.InteropServices.ComTypes.DATADIR -> System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
Function EnumFormatEtc (dwDirection As DATADIR) As IEnumFORMATETC Implements IDataObject.EnumFormatEtc

参数

dwDirection
DATADIR

指定数据方向的 DATADIR 值之一。

返回

此方法支持 E_INVALIDARG 和 E_OUTOFMEMORY 等标准返回值,以及下面的值:

说明
S_OK 已成功创建枚举数对象。
E_NOTIMPLdirection 参数指定的方向不受支持。
OLE_S_USEREG OLE 枚举注册表中的格式的请求。

实现

注解

此成员是显式接口成员的实现。 它只能在 DataObject 被强制转换为 IDataObject 接口时使用。

适用于