使用C#在Windows 8上获取当前线程ID

Con*_*oob 12 c# multithreading windows-runtime windows-store-apps

已从WinRT中删除System.Threading.Thread(带.CurrentThread.ThreadId等).是否有可能在Windows 8中获取当前线程ID(用于调试和记录?)?

Luk*_*oid 29

查看Environment.CurrentManagedThreadIdWindows应用商店应用程序支持的内容.

.NET for Windows Store应用程序

受支持者:Windows 8