IDataObject.EnumFormatEtc(DATADIR) Método

Definição

Cria um objeto para enumerar as FORMATETC estruturas de um objeto de dados. Estas estruturas são usadas em chamadas para GetData(FORMATETC, STGMEDIUM) ou SetData(FORMATETC, STGMEDIUM, Boolean).

public:
 System::Runtime::InteropServices::ComTypes::IEnumFORMATETC ^ EnumFormatEtc(System::Runtime::InteropServices::ComTypes::DATADIR direction);
public System.Runtime.InteropServices.ComTypes.IEnumFORMATETC EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR direction);
abstract member EnumFormatEtc : System.Runtime.InteropServices.ComTypes.DATADIR -> System.Runtime.InteropServices.ComTypes.IEnumFORMATETC
Public Function EnumFormatEtc (direction As DATADIR) As IEnumFORMATETC

Parâmetros

direction
DATADIR

Um dos DATADIR valores que especifica a direção dos dados.

Devoluções

Este método suporta os valores padrão de retorno E_INVALIDARG e E_OUTOFMEMORY, bem como os seguintes:

Valor Descrição
S_OK O objeto enumerador foi criado com sucesso.
E_NOTIMPL A direção especificada pelo direction parâmetro não é suportada.
OLE_S_USEREG Solicita que o OLE enumere os formatos do registo.

Observações

Para mais informações, consulte o método IDataObject::EnumFormatEtc.

Aplica-se a