Environment.Version Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets a Version1 object that describes the major, minor, build, and revision numbers of the common language runtime.
Namespace: System2
Assembly: mscorlib (in mscorlib.dll)
public static Version Version { get; }
Property Value
Type: System.Version1An object that displays the version of the common language runtime.
For more information about the version of the common language runtime that is installed with each version of the .NET Framework, see .NET Framework Versions and Dependencies3.
The following example displays the version of the common language runtime. (The version is omitted from the example output for security reasons.)
// Sample for the Environment.Version property using System; class Sample { public static void Main() { Console.WriteLine(); Console.WriteLine("Version: {0}", Environment.Version.ToString()); } }
Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements4.
