IDataObject.GetData(FORMATETC, STGMEDIUM) IDataObject.GetData(FORMATETC, STGMEDIUM) IDataObject.GetData(FORMATETC, STGMEDIUM) IDataObject.GetData(FORMATETC, STGMEDIUM) Method

Definition

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

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

Parameters

pFormatEtc
FORMATETC FORMATETC FORMATETC FORMATETC

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

b
STGMEDIUM STGMEDIUM STGMEDIUM STGMEDIUM

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

Returns

The GetData 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 GetData 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

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

Applies to