Metodo IDebugHostPublic::GetLocation (dbgmodel.h)

Per i dati con un indirizzo, il metodo GetLocation restituirà la posizione astratta (indirizzo) del campo.

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

Sintassi

HRESULT GetLocation(
  Location *location
);

Parametri

location

La posizione astratta (ad esempio l'indirizzo) dei dati verrà restituita qui.

Valore restituito

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

Commenti

Codice di esempio

ComPtr<IDebugHostPublic> spPublic; /* get a public symbol (see EnumerateChildren) */

Location publicLocation;
if (SUCCEEDED(spPublic->GetLocation(&publicLocation)))
{
    // For public symbols which indicate they have a static location 
    // via GetLocationKind, publicLocation will be the location of the symbol
}

Requisiti

Requisito Valore
Intestazione dbgmodel.h

Vedi anche

Interfaccia IDebugHostPublic