Muokkaa

Jaa


IDataObject.GetDataHere(FORMATETC, STGMEDIUM) Method

Definition

Renders the data that is described in the specified pFormatEtc structure and transfers it to the b parameter.

public:
 int GetDataHere(Microsoft::Aspnet::Snapin::FORMATETC % pFormatEtc, Microsoft::Aspnet::Snapin::STGMEDIUM % b);
public int GetDataHere (ref Microsoft.Aspnet.Snapin.FORMATETC pFormatEtc, ref Microsoft.Aspnet.Snapin.STGMEDIUM b);
abstract member GetDataHere : FORMATETC * STGMEDIUM -> int
Public Function GetDataHere (ByRef pFormatEtc As FORMATETC, ByRef b As STGMEDIUM) As Integer

Parameters

pFormatEtc
FORMATETC

A pointer to the FORMATETC defining the format, medium, and target device for calls to retrieve data.

b
STGMEDIUM

A pointer to the STGMEDIUM indicating the storage medium containing the returned data.

Returns

The GetDataHere method supports the standard return values E_INVALIDARG, E_UNEXPECTED, and E_OUTOFMEMORY, as well as the following return values:

Return value Description
S_OK This call to the GetDataHere method successfully retrieved and placed data in the provided storage medium.
DV_E_LINDEX lindex is not valid.
DV_E_FORMATETC pFormatEtc is not valid.
DV_E_TYMED tymed is not valid.
DV_E_DVASPECT dwAspect is not valid.
OLE_E_NOTRUNNING The object application is not running.
STG_E_MEDIUMFULL An error occurred when allocating the medium.

Remarks

The GetDataHere method differs from the GetData(FORMATETC, STGMEDIUM) method in that the caller must allocate and release the specified storage medium.

For more information about programming with the IDataObject interface and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.

Applies to