DataObject.IDataObject.EnumFormatEtc(DATADIR) Metoda

Definice

Vytvoří objekt pro vytvoření výčtu FORMATETC struktur datového objektu. Tyto struktury se používají ve voláních nebo 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.Security.SecurityCritical]
System.Runtime.InteropServices.ComTypes.IEnumFORMATETC IDataObject.EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR dwDirection);
System.Runtime.InteropServices.ComTypes.IEnumFORMATETC IDataObject.EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR dwDirection);
[<System.Security.SecurityCritical>]
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
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

Parametry

dwDirection
DATADIR

Jedna z DATADIR hodnot, které určují směr dat.

Návraty

Tato metoda podporuje standardní návratové hodnoty E_INVALIDARG a E_OUTOFMEMORY a také následující:

Hodnota Popis
S_OK Objekt enumerátoru byl úspěšně vytvořen.
E_NOTIMPL Směr zadaný parametrem dwDirection není podporován.
OLE_S_USEREG Požaduje, aby OLE vyčíslil formáty z registru.

Implementuje

Atributy

Poznámky

Tento člen je explicitní implementace člena rozhraní. Lze jej použít pouze v případě, DataObject že je instance přetypována do IDataObject rozhraní.

Platí pro