RuntimeInformation Class

Definition

Provides information about the .NET runtime installation.

public static class RuntimeInformation
Inheritance
RuntimeInformation

Properties

FrameworkDescription

Gets the name of the .NET installation on which an app is running.

OSArchitecture

Gets the platform architecture on which the current app is running.

OSDescription

Gets a string that describes the operating system on which the app is running.

ProcessArchitecture

Gets the process architecture of the currently running app.

RuntimeIdentifier

Gets the platform for which the runtime was built (or on which an app is running).

Methods

IsOSPlatform(OSPlatform)

Indicates whether the current application is running on the specified platform.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1