Condividi tramite


Metodo IDebugHostType::GetPointerKind (dbgmodel.h)

Per i tipi che sono puntatori, il metodo GetPointerKind restituisce il tipo di puntatore. Questo valore è definito dall'enumerazione PointerKind ed è uno dei valori seguenti:

Enumerant Significato
PointerStandard Indica un puntatore C/C++ standard - a *
PuntatoreReference Indica un riferimento C/C++ (const o meno) - un &
PointerRValueReference Indica un riferimento rvalue C/C++ (const o meno) - un &&
PointerCXHat Indica un puntatore gestito di hat C++/CX (const o meno) - a ^

Sintassi

HRESULT GetPointerKind(
  PointerKind *pointerKind
);

Parametri

pointerKind

Il tipo di puntatore verrà restituito qui (come valore dell'enumerazione PointerKind.

Valore restituito

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

Osservazioni

codice di esempio

ComPtr<IDebugHostType> spType; /* get a type for something that's a pointer 
                                  or reference (see FindTypeByName) */

PointerKind pk;
if (SUCCEEDED(spType->GetPointerKind(&pk)))
{
    // pk indicates the kind of pointer:
    //      PointerStandard (it's a '*')
    //      PointerReference (it's a '&')
    //      etc...
}

Fabbisogno

Requisito Valore
intestazione dbgmodel.h

Vedere anche

'interfaccia IDebugHostType