RuntimeInformation.OSArchitecture Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the platform architecture on which the current app is running.
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
Property Value
The platform architecture on which the current app is running.
Remarks
The returned value is intended to represent the actual architecture of the underlying operating system. It is a best effort to ignore the architecture emulation infrastructure that may be involved to run the process. The returned value takes into account emulation built into Windows and macOS operating systems. The returned value does not take into account emulation using QEMU that is typically used on Linux operating system.