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 值,指定資料的方向。

傳回

IEnumFORMATETC

這個方法支援標準傳回值 E_INVALIDARG 和 E_OUTOFMEMORY,以及下列值:

描述
S_OK 已成功建立列舉值物件。
E_NOTIMPL 不支援 direction 參數所指定的方向。
OLE_S_USEREG 要求 OLE 列舉登錄中的格式。

實作

備註

這個成員是明確介面成員實作, 它只有在 DataObject 轉型成 IDataObject 介面時才能使用。

適用於