Class OSInfo
Wraps information about an operating system in a serializer-friendly format.
Namespace: NanoByte.Common.Info
Assembly: NanoByte.Common.dll
Syntax
public sealed class OSInfo : ValueType
Fields
FrameworkVersion
The version of the operating system (e.g. 6.0 for Vista).
Declaration
public string FrameworkVersion
Field Value
Type | Description |
---|---|
String |
Platform
The operating system platform (e.g. Windows NT).
Declaration
public string Platform
Field Value
Type | Description |
---|---|
String |
ServicePack
The service pack level (e.g. "Service Pack 1").
Declaration
public string ServicePack
Field Value
Type | Description |
---|---|
String |
Version
The version of the operating system (e.g. 6.0 for Vista).
Declaration
public string Version
Field Value
Type | Description |
---|---|
String |
Properties
Current
Information about the current operating system.
Declaration
public static OSInfo Current { get; }
Property Value
Type | Description |
---|---|
OSInfo |
OSArchitecture
The processor architecture of the operating system.
Declaration
public Architecture OSArchitecture { get; set; }
Property Value
Type | Description |
---|---|
Architecture |
ProcessArchitecture
The (potentially emulated) processor architecture of the running process.
Declaration
public Architecture ProcessArchitecture { get; set; }
Property Value
Type | Description |
---|---|
Architecture |