Metodo IModelObject::GetTargetInfo (dbgmodel.h)

Il metodo GetTargetInfo è in effetti una combinazione dei metodi GetLocation e GetTypeInfo che restituiscono sia la posizione astratta che il tipo nativo dell'oggetto specificato.

Sintassi

HRESULT GetTargetInfo(
  Location       *location,
  IDebugHostType **type
);

Parametri

location

La posizione astratta dell'oggetto nativo rappresentato dal puntatore verrà restituita qui.

type

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

Valore restituito

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

Commenti

Codice di esempio

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

Location loc;
ComPtr<IDebugHostType> spType;
if (SUCCEEDED(spObject->GetTargetInfo(&loc, &spType)))
{
    // loc has a valid location
    // spType has a valid type -- the type of the object
}

Requisiti

Requisito Valore
Intestazione dbgmodel.h

Vedi anche

Interfaccia IModelObject