IDataObject.GetData(FORMATETC, STGMEDIUM) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 : FORMATETC * STGMEDIUM -> int
Public Function GetData (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.
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.