IModelObject::GetTypeInfo method (dbgmodel.h)

The GetTypeInfo method will return the native type of the given object. If the object does not have native type information associated with it (e.g.: it is an intrinsic, etc...), the call will still succeed but will return null.

Syntax

HRESULT GetTypeInfo(
  IDebugHostType **type
);

Parameters

type

The native type of the object represented by the this pointer will be returned here as an IDebugHostType interface.

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Code Sample

In this sample the IDebugHostType interface is used.

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.
}

Requirements

Requirement Value
Header dbgmodel.h

See also

IModelObject interface