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 模擬。

適用於