IDataObject.EnumFormatEtc(DATADIR) 方法

定義

建立物件,用於列舉資料物件的 FORMATETC 結構。 呼叫 GetData(FORMATETC, STGMEDIUM)SetData(FORMATETC, STGMEDIUM, Boolean) 時會使用這些結構。

public:
 System::Runtime::InteropServices::ComTypes::IEnumFORMATETC ^ EnumFormatEtc(System::Runtime::InteropServices::ComTypes::DATADIR direction);
public System.Runtime.InteropServices.ComTypes.IEnumFORMATETC EnumFormatEtc (System.Runtime.InteropServices.ComTypes.DATADIR direction);
abstract member EnumFormatEtc : System.Runtime.InteropServices.ComTypes.DATADIR -> System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
Public Function EnumFormatEtc (direction As DATADIR) As IEnumFORMATETC

參數

direction
DATADIR

其中一個 DATADIR 值,指定資料的方向。

傳回

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

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

備註

如需詳細資訊,請參閱 IDataObject::EnumFormatEtc 方法

適用於