DataObject.IDataObject.EnumFormatEtc(DATADIR) Metod

Definition

Skapar ett objekt för att räkna upp strukturerna FORMATETC för ett dataobjekt. Dessa strukturer används i anrop till GetData(FORMATETC, STGMEDIUM) eller 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

Parametrar

dwDirection
DATADIR

Ett av de DATADIR värden som anger datariktningen.

Returer

Den här metoden stöder standardreturvärdena E_INVALIDARG och E_OUTOFMEMORY, samt följande:

Värde Beskrivning
S_OK Uppräkningsobjektet har skapats.
E_NOTIMPL Den riktning som anges av parametern dwDirection stöds inte.
OLE_S_USEREG Begär att OLE räknar upp formaten från registret.

Implementeringar

Attribut

Kommentarer

Den här medlemmen är en explicit implementering av gränssnittsmedlemmar. Den kan endast användas när instansen DataObject skickas till ett IDataObject gränssnitt.

Gäller för