ICorProfilerInfo::GetCurrentThreadID Method
Gets the ID of the current thread, if it is a managed thread.
HRESULT GetCurrentThreadID(
[out] ThreadID *pThreadId);
pThreadId
[out] A pointer to the returned ID of the managed thread.
If the current thread is an internal runtime thread or other unmanaged thread, GetCurrentThreadID
returns CORPROF_E_NOT_MANAGED_THREAD as the HRESULT, and the returned value of the pThreadId
parameter will be null.
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: