Share via


IDataObject.EnumFormatEtc(DATADIR) Metode

Definisi

Membuat objek untuk menghitung FORMATETC struktur untuk objek data. Struktur ini digunakan dalam panggilan ke GetData(FORMATETC, STGMEDIUM) atau 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

Parameter

direction
DATADIR

Salah DATADIR satu nilai yang menentukan arah data.

Mengembalikan

Metode ini mendukung nilai pengembalian standar E_INVALIDARG dan E_OUTOFMEMORY, serta berikut ini:

Nilai Deskripsi
S_OK Objek enumerator berhasil dibuat.
E_NOTIMPL Arah yang ditentukan oleh direction parameter tidak didukung.
OLE_S_USEREG Permintaan yang OLE menghitung format dari registri.

Keterangan

Untuk informasi selengkapnya, lihat metode IDataObject::EnumFormatEtc.

Berlaku untuk