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

标签 c# multithreading windows-runtime windows-store-apps

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

最佳答案

参见 Environment.CurrentManagedThreadId在 Windows 商店应用程序中受支持。

.NET for Windows Store apps

Supported in: Windows 8

关于c# - 使用 C# 在 Windows 8 上获取当前线程 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14016094/

相关文章:

c# - 使用自定义字符集的 Base64 编码

c# - 注入(inject) 2.1 ActivationException : Error activating string

java - 安卓 : Updating thread causes GC to run a ton

linq - 如何在 Linq 查询中等待方法

c# - 为什么我无法将 sqlite 文件上传到 OneDrive?

c# - ASP.NET MVC 5 模块化 Web 应用程序架构?

c# - XNA-如何计算二维圆相互碰撞后的速度?

c# - 等待BackgroundWorker RunWorkerCompleted

c# - 设置并发作业的最大值 Quartz.Net

dependency-properties - 带有 IEnumerable 的 WinRT DependencyProperty 根本不会触发