System.OperatingSystem Class

Represents information about an operating system, such as the version and platform identifier. This class cannot be inherited.

See Also: OperatingSystem Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class OperatingSystem : ICloneable, System.Runtime.Serialization.ISerializable

Remarks

The OperatingSystem class contains information about an operating system. For example, the Environment.OSVersion property returns information about the currently executing operating system in an OperatingSystem object.

By design, the OperatingSystem class is not a general purpose means of describing an operating system, and you cannot derive a more inclusive type from the OperatingSystem class. If you need a type to contain other information about an operating system, create your own type, then include a field of type OperatingSystem and any additional fields, properties, or methods you require.

Requirements

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