Metodo ICorProfilerInfo::GetCurrentThreadID

Ottiene l'ID del thread corrente, se è un thread gestito.

Sintassi

HRESULT GetCurrentThreadID(  
    [out] ThreadID *pThreadId);  

Parametri

pThreadId
[out] Puntatore all'ID restituito del thread gestito.

Commenti

Se il thread corrente è un thread di runtime interno o un altro thread non gestito, GetCurrentThreadID restituisce CORPROF_E_NOT_MANAGED_THREAD come HRESULT e il valore restituito del pThreadId parametro sarà Null.

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