如何获取 Windows Phone 上的处理器数量

问题描述:

我想知道如何获取 Windows Phone 上的处理器数量...如 MSDN 中所述,以下语句总是抛出 MethodAccessException:

I'm wondering how to get the number of processors on Windows Phone... as documented in the MSDN the following statement always throws a MethodAccessException:

Environment.ProcessorCount

任何帮助将不胜感激.

谢谢,j3d

根据 this 论坛帖子,链接到 MSDN doc 你提到的,你不能在 Windows Phone 上以编程方式获得处理器数量.

According to this forum post, which links to the MSDN doc that you mentioned, you can't get the processor count programatically on Windows Phone.