Share via


Método IModelObject::GetTypeInfo (dbgmodel.h)

El método GetTypeInfo devolverá el tipo nativo del objeto especificado. Si el objeto no tiene información de tipo nativa asociada (por ejemplo: es intrínseca, etc.), la llamada seguirá siendo correcta, pero devolverá null.

Sintaxis

HRESULT GetTypeInfo(
  IDebugHostType **type
);

Parámetros

type

El tipo nativo del objeto representado por este puntero se devolverá aquí como una interfaz IDebugHostType .

Valor devuelto

Este método devuelve HRESULT que indica éxito o error.

Comentarios

Ejemplo de código

En este ejemplo se usa la interfaz IDebugHostType .

ComPtr<IModelObject> spObject; /* get an object */

ComPtr<IDebugHostType> spType;
if (SUCCEEDED(spObject->GetTypeInfo(&spType)) && spType != nullptr)
{
    // The object has a native type.  spType is such type.
}

Requisitos

Requisito Valor
Header dbgmodel.h

Consulte también

Interfaz IModelObject