RuntimeInformation.OSArchitecture 属性

定义

获取正在其上运行当前应用的平台体系结构。

public:
 static property System::Runtime::InteropServices::Architecture OSArchitecture { System::Runtime::InteropServices::Architecture get(); };
public static System.Runtime.InteropServices.Architecture OSArchitecture { get; }
static member OSArchitecture : System.Runtime.InteropServices.Architecture
Public Shared ReadOnly Property OSArchitecture As Architecture

属性值

正在其上运行当前应用的平台体系结构。

注解

返回的值旨在表示基础操作系统的实际体系结构。 最好忽略运行该过程时可能涉及的体系结构仿真基础结构。 返回的值考虑了内置于 Windows 和 macOS 操作系统中的模拟。 返回的值不考虑使用通常在 Linux 操作系统上使用的 QEMU 的模拟。

适用于