Metodo IModelObject::GetTypeInfo (dbgmodel.h)

Il metodo GetTypeInfo restituirà il tipo nativo dell'oggetto specificato. Se l'oggetto non dispone di informazioni sul tipo nativo associate,ad esempio, è un elemento intrinseco e così via, la chiamata avrà esito positivo, ma restituirà null.

Sintassi

HRESULT GetTypeInfo(
  IDebugHostType **type
);

Parametri

type

Il tipo nativo dell'oggetto rappresentato da questo puntatore verrà restituito qui come interfaccia IDebugHostType .

Valore restituito

Questo metodo restituisce HRESULT che indica l'esito positivo o l'errore.

Commenti

Codice di esempio

In questo esempio viene usata l'interfaccia 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.
}

Requisiti

Requisito Valore
Intestazione dbgmodel.h

Vedi anche

Interfaccia IModelObject