RuntimeEnvironment.GetSystemVersion RuntimeEnvironment.GetSystemVersion RuntimeEnvironment.GetSystemVersion RuntimeEnvironment.GetSystemVersion Method

Definition

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

public:
 static System::String ^ GetSystemVersion();
public static string GetSystemVersion ();
static member GetSystemVersion : unit -> string
Public Shared Function GetSystemVersion () As String

Returns

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

Examples

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());
// Show the CLR's version number.
Console.WriteLine("System version: {0}", RuntimeEnvironment.GetSystemVersion());
' Show the CLR's version number.
Console.WriteLine("System version: {0}", RuntimeEnvironment.GetSystemVersion())

Applies to