Metodo ICorProfilerInfo::GetThreadContext

Ottiene l'identità del contesto attualmente associata al thread specificato.

Sintassi

HRESULT GetThreadContext(  
    [in]  ThreadID  threadId,  
    [out] ContextID *pContextId);  

Parametri

threadId
[in] ID del thread.

pContextId
[out] Puntatore all'ID di contesto attualmente associato al thread specificato. Se al thread non è attualmente associato alcun contesto, questa funzione restituirà CORPROF_E_DATAINCOMPLETE.

Requisiti

Piattaforme: vedere Requisiti di sistema di .NET Framework.

Intestazione: CorProf.idl, CorProf.h

Libreria: CorGuids.lib

Versioni di .NET Framework: Disponibile dalla versione 2.0

Vedi anche