Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the current thread id on Windows 8 with C#

System.Threading.Thread (with .CurrentThread.ThreadId etc) has been removed from WinRT. Is it possible to get a current thread id (for debugging and logging purposes?) in Windows 8?

like image 330
ConfusedNoob Avatar asked Dec 24 '12 01:12

ConfusedNoob


1 Answers

See Environment.CurrentManagedThreadId which is supported in windows store applications.

.NET for Windows Store apps

Supported in: Windows 8

like image 58
Lukazoid Avatar answered Nov 12 '22 13:11

Lukazoid