RuntimeEnvironment.GetSystemVersion Method ()


Gets the version number of the common language runtime that is running the current process.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public static string GetSystemVersion()

Return Value

Type: System.String

A string containing the version number of the common language runtime.

The following example demonstrates calling the GetSystemVersion method. This code example is part of a larger example provided for the RuntimeEnvironment class.

// Show the CLR's version number.
Console.WriteLine("System version: {0}", RuntimeEnvironment.GetSystemVersion());

.NET Framework
Available since 1.1
Return to top