DataObject.IDataObject.GetDataHere(FORMATETC, STGMEDIUM) Metodo

Definizione

Ottiene i dati da un oggetto dati di origine. Questo metodo, chiamato da un consumer di dati, si differenzia dal metodo GetData(FORMATETC, STGMEDIUM) in quanto il chiamante deve allocare e liberare il supporto di archiviazione specificato.

 virtual void System.Runtime.InteropServices.ComTypes.IDataObject.GetDataHere(System::Runtime::InteropServices::ComTypes::FORMATETC % formatetc, System::Runtime::InteropServices::ComTypes::STGMEDIUM % medium) = System::Runtime::InteropServices::ComTypes::IDataObject::GetDataHere;
[System.Security.SecurityCritical]
void IDataObject.GetDataHere (ref System.Runtime.InteropServices.ComTypes.FORMATETC formatetc, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium);
void IDataObject.GetDataHere (ref System.Runtime.InteropServices.ComTypes.FORMATETC formatetc, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium);
[<System.Security.SecurityCritical>]
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.GetDataHere : FORMATETC * STGMEDIUM -> unit
override this.System.Runtime.InteropServices.ComTypes.IDataObject.GetDataHere : FORMATETC * STGMEDIUM -> unit
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.GetDataHere : FORMATETC * STGMEDIUM -> unit
override this.System.Runtime.InteropServices.ComTypes.IDataObject.GetDataHere : FORMATETC * STGMEDIUM -> unit
Sub GetDataHere (ByRef formatetc As FORMATETC, ByRef medium As STGMEDIUM) Implements IDataObject.GetDataHere

Parametri

formatetc
FORMATETC

Puntatore a una struttura FORMATETC, passato per riferimento, che definisce formato, supporto e periferica di destinazione da utilizzare per il passaggio di dati. È possibile specificare un solo supporto in TYMED e sono validi solo i seguenti valori di TYMED: TYMED_ISTORAGE, TYMED_ISTREAM, TYMED_HGLOBAL o TYMED_FILE.

medium
STGMEDIUM

Oggetto STGMEDIUM, passato per riferimento, che definisce il supporto di archiviazione contenente i dati di cui è in corso il trasferimento. È necessario che il supporto sia allocato dal chiamante e compilato dal metodo GetDataHere(FORMATETC, STGMEDIUM). Il chiamante deve anche liberare il supporto. L'implementazione di questo metodo deve sempre fornire un valore null per il membro pUnkForRelease della struttura STGMEDIUM alla quale punta il parametro.

Implementazioni

Attributi

Commenti

Questo membro è un’implementazione esplicita di un membro di interfaccia. Può essere utilizzato solo quando si esegue il cast dell'istanza DataObject a un'interfaccia IDataObject.

Si applica a