Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RuntimeInformation Class

Definition

Namespace:
System.Runtime.InteropServices
Assemblies:
netstandard.dll, System.Runtime.dll
Assemblies:
netstandard.dll, System.Runtime.InteropServices.RuntimeInformation.dll
Assembly:
System.Runtime.InteropServices.RuntimeInformation.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
RuntimeInformation.cs
Source:
RuntimeInformation.cs
Source:
RuntimeInformation.cs
Source:
RuntimeInformation.cs
Source:
RuntimeInformation.cs

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.

Provides information about the .NET runtime installation.

public ref class RuntimeInformation abstract sealed
public static class RuntimeInformation
type RuntimeInformation = class
Public Class RuntimeInformation
Inheritance
RuntimeInformation

Properties

Name Description
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

Name Description
IsOSPlatform(OSPlatform)

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

Applies to


Feedback

Was this page helpful?