Metodo ICorDebugType2::GetTypeID

Ottiene un COR_TYPEID per questo tipo.

Sintassi

HRESULT GetTypeID(  
    ([out] COR_TYPEID *id  
);  

Parametri

id
[out] Puntatore al COR_TYPEID per questo ICorDebugType.

Valore restituito

Il valore restituito è S_OK in caso di esito positivo o un codice di errore HRESULT in caso di esito negativo. I HRESULT codici includono quanto segue:

Codice restituito Descrizione
S_OK Il metodo è riuscito. Il metodo ha recuperato un COR_TYPEID valido.
CORDBG_E_CLASS_NOT_LOADED Il tipo non è stato caricato.
CORDBG_E_UNSUPPORTED Il tipo non è supportato.

Commenti

Questo metodo fornisce un mapping da ICorDebugType, che rappresenta un tipo che potrebbe essere stato caricato o meno nel runtime, in un COR_TYPEID, che funge da handle opaco che identifica un tipo caricato nel runtime.

Quando il tipo rappresentato da ICorDebugType non è ancora stato caricato, questo metodo restituisce CORDBG_E_CLASS_NOT_LOADED. Se il tipo non è supportato, restituisce CORDBG_E_UNSUPPORTED.

Requisiti

Piattaforme: vedere Requisiti di sistema di .NET Framework.

Intestazione: CorDebug.idl, CorDebug.h

Libreria: CorGuids.lib

Versioni di .NET Framework: Disponibile dalla versione 4.6.2

Vedi anche