ICorProfilerInfo::GetCurrentThreadID Method
Gets the ID of the current thread, if it is a managed thread.
Syntax
HRESULT GetCurrentThreadID(
[out] ThreadID *pThreadId);
Parameters
pThreadId
[out] A pointer to the returned ID of the managed thread.
Remarks
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.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
See also
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.