IDataObject.GetData(FORMATETC, STGMEDIUM) Método
Definição
Renderiza os dados descritos na estrutura pFormatEtc especificada e os transfere para o parâmetro b.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
Parâmetros
- pFormatEtc
- FORMATETC
Um ponteiro para o FORMATETC definindo o formato, a média e o dispositivo de destino para chamadas para recuperar dados.A pointer to the FORMATETC defining the format, medium, and target device for calls to retrieve data.
Um ponteiro para o STGMEDIUM indicando a mídia de armazenamento que contém os dados retornados.A pointer to the STGMEDIUM indicating the storage medium containing the returned data.
Retornos
O método GetData é compatível com os valores retornados padrão E_INVALIDARG, E_UNEXPECTED e E_OUTOFMEMORY e também com os seguintes valores retornados:The GetData method supports the standard return values E_INVALIDARG, E_UNEXPECTED, and E_OUTOFMEMORY, as well as the following return values:
| Valor retornado | Descrição | | --- | --- | | S_OK | Essa chamada ao método GetData recuperou e colocou com sucesso os dados na mídia de armazenamento fornecida.| 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 não é válido.| | DV_E_LINDEX | lindex is not valid. | | DV_E_FORMATETC | pFormatEtc não é válido.| | DV_E_FORMATETC | pFormatEtc is not valid. | | DV_E_TYMED | tymed não é válido.| | DV_E_TYMED | tymed is not valid. | | DV_E_DVASPECT | dwAspect não é válido.| | DV_E_DVASPECT | dwAspect is not valid. | | OLE_E_NOTRUNNING | O aplicativo do objeto não está em execução.| | OLE_E_NOTRUNNING | The object application is not running. | | STG_E_MEDIUMFULL | Ocorreu um erro ao alocar a mídia.| | STG_E_MEDIUMFULL | An error occurred when allocating the medium. |
Comentários
Para obter mais informações sobre programação com a IDataObject interface e o MMC (console de gerenciamento Microsoft), consulte o Guia do programador do MMC.For more information about programming with the IDataObject interface and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.