Export (0) Print
Expand All

IDataObject.GetDataHere Method

Obtains data from a source data object. This method, which is called by a data consumer, differs from the GetData method in that the caller must allocate and free the specified storage medium.

Namespace: System.Runtime.InteropServices.ComTypes
Assembly: System (in system.dll)

void GetDataHere (
	[InAttribute] ref FORMATETC format,
	ref STGMEDIUM medium
)
void GetDataHere (
	/** @attribute InAttribute() */ /** @ref */ FORMATETC format, 
	/** @ref */ STGMEDIUM medium
)
Not applicable.

Parameters

format

A pointer to a FORMATETC structure, passed by reference, that defines the format, medium, and target device to use when passing the data. Only one medium can be specified in TYMED, and only the following TYMED values are valid: TYMED_ISTORAGE, TYMED_ISTREAM, TYMED_HGLOBAL, or TYMED_FILE.

medium

A STGMEDIUM, passed by reference, that defines the storage medium containing the data being transferred. The medium must be allocated by the caller and filled in by GetDataHere. The caller must also free the medium. The implementation of this method must always supply a value of a null reference (Nothing in Visual Basic) for the pUnkForRelease member of the STGMEDIUM structure that this parameter points to.

For more information about IDataObject::GetDataHere, see the MSDN Library.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft