Metodo IDebugHostField::GetLocation (dbgmodel.h)

Per i campi che hanno un indirizzo indipendentemente dall'istanza del tipo particolare ,ad esempio campi il cui tipo di posizione indica LocationStatic, il metodo GetLocation restituirà la posizione astratta (indirizzo) del campo.

Se il campo specificato non ha una posizione statica, il metodo GetLocation avrà esito negativo.

Sintassi

HRESULT GetLocation(
  Location *location
);

Parametri

location

La posizione astratta (ad esempio, indirizzo) del campo verrà restituita qui.

Valore restituito

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

Osservazioni

codice di esempio*

ComPtr<IDebugHostField> spField; /* get a field symbol (see EnumerateChildren) */

Location fieldLocation;
if (SUCCEEDED(spField->GetLocation(&fieldLocation)))
{
    // For fields which have a static location as determined by GetLocationKind, 
    // the location of the field will be in fieldLocation.
}

Fabbisogno

Requisito Valore
intestazione dbgmodel.h

Vedere anche

'interfaccia IDebugHostField