DataObject.IDataObject.GetCanonicalFormatEtc(FORMATETC, FORMATETC) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
virtual int System.Runtime.InteropServices.ComTypes.IDataObject.GetCanonicalFormatEtc(System::Runtime::InteropServices::ComTypes::FORMATETC % pformatetcIn, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::FORMATETC % pformatetcOut) = System::Runtime::InteropServices::ComTypes::IDataObject::GetCanonicalFormatEtc;
[System.Security.SecurityCritical]
int IDataObject.GetCanonicalFormatEtc(ref System.Runtime.InteropServices.ComTypes.FORMATETC pformatetcIn, out System.Runtime.InteropServices.ComTypes.FORMATETC pformatetcOut);
int IDataObject.GetCanonicalFormatEtc(ref System.Runtime.InteropServices.ComTypes.FORMATETC pformatetcIn, out System.Runtime.InteropServices.ComTypes.FORMATETC pformatetcOut);
[<System.Security.SecurityCritical>]
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.GetCanonicalFormatEtc : FORMATETC * FORMATETC -> int
override this.System.Runtime.InteropServices.ComTypes.IDataObject.GetCanonicalFormatEtc : FORMATETC * FORMATETC -> int
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.GetCanonicalFormatEtc : FORMATETC * FORMATETC -> int
override this.System.Runtime.InteropServices.ComTypes.IDataObject.GetCanonicalFormatEtc : FORMATETC * FORMATETC -> int
Function GetCanonicalFormatEtc (ByRef pformatetcIn As FORMATETC, ByRef pformatetcOut As FORMATETC) As Integer Implements IDataObject.GetCanonicalFormatEtc
Parâmetros
- pformatetcIn
- FORMATETC
Um ponteiro para uma FORMATETC estrutura, passada por referência, que define o formato, o dispositivo médio e de destino que o chamador gostaria de usar para recuperar dados em uma chamada subsequente, como GetData(FORMATETC, STGMEDIUM). O TYMED membro não é significativo nesse caso e deve ser ignorado.
- pformatetcOut
- FORMATETC
Quando esse método é retornado, contém um ponteiro para uma FORMATETC estrutura que contém as informações mais gerais possíveis para uma renderização específica, tornando-o canonicamente equivalente a formatetcIn. O chamador deve alocar essa estrutura e o GetCanonicalFormatEtc(FORMATETC, FORMATETC) método deve preencher os dados. Para recuperar dados em uma chamada subsequente, como GetData(FORMATETC, STGMEDIUM), o chamador usa o valor fornecido, formatOuta menos que o valor fornecido seja null. Esse valor será null se o método retornar DATA_S_SAMEFORMATETC. O TYMED membro não é significativo nesse caso e deve ser ignorado. Esse parâmetro é passado sem inicialização.
Retornos
Esse método dá suporte aos valores retornados padrão E_INVALIDARG, E_UNEXPECTED e E_OUTOFMEMORY, bem como o seguinte:
| Valor | Descrição |
|---|---|
| S_OK | A estrutura retornada FORMATETC é diferente daquela que foi passada. |
| DATA_S_SAMEFORMATETC | As FORMATETC estruturas são as mesmas e null são retornadas no pformatetcOut parâmetro.
|
| DV_E_LINDEX | Há um valor inválido para lindex; atualmente, há suporte apenas -1. |
| DV_E_FORMATETC | Há um valor inválido para o pformatetcIn parâmetro.
|
| OLE_E_NOTRUNNING | O aplicativo não está em execução. |
Implementações
- Atributos
Comentários
Esse membro é uma implementação de membro de interface explícita. Ele só pode ser usado quando a DataObject instância é convertida em uma IDataObject interface.