Mono Class Library: System.OperatingSystem Overview | Members

System.OperatingSystem Constructor

Create a new OperatingSystem object with the specified PlatformID and Version values.

public OperatingSystem (PlatformID platform, Version version)

Parameters

platform
PlatformID for the newly created OperatingSystem object.
version
Version of the newly created OperatingSystem object.

Remarks

C# Example

using System;

class SystemDemo
{
	public static void Main(string[] args)
	{
		OperatingSystem o=new OperatingSystem(PlatformID.Win32NT,new Version(5,1,2600,0));
		Console.WriteLine(o);
	}
}
  
prints

Microsoft Windows NT 5.1.2600.0

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0