开发者

C#: How to tell architecture of machine [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How to detect Windows 64 bit platfo开发者_StackOverflow社区rm with .net?

At a low level, how can I tell if a particular machine is 64-bit or 32-bit? I have a Firebird d/b that appears to be sensitive to the 64-bit architecture, and I want to verify that.


It sounds like the Environment.Is64BitOperatingSystem property is exactly what you need.


You can tell if you are running under a 64 bit OS with the Environment.Is64BitOperatingSystem property. If you have a 64bit machine but with a 32 bit OS installed then everything will be running as 32 bit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜