mscorlib(4.0.0.0) API with additions
|
Represents information about an operating system, such as the version and platform identifier. This class cannot be inherited. More...
Public Member Functions | |
OperatingSystem (PlatformID platform, Version version) | |
Initializes a new instance of the T:System.OperatingSystem class, using the specified platform identifier value and version object. More... | |
void | GetObjectData (SerializationInfo info, StreamingContext context) |
Populates a T:System.Runtime.Serialization.SerializationInfo object with the data necessary to deserialize this instance. More... | |
object | Clone () |
Creates an T:System.OperatingSystem object that is identical to this instance. More... | |
override string | ToString () |
Converts the value of this T:System.OperatingSystem object to its equivalent string representation. More... | |
Public Attributes | |
PlatformID | Platform => _platform |
Gets a T:System.PlatformID enumeration value that identifies the operating system platform. More... | |
Version | Version => _version |
Gets a T:System.Version object that identifies the operating system. More... | |
Properties | |
string | ServicePack [get] |
Gets the service pack version represented by this T:System.OperatingSystem object. More... | |
string? | VersionString [get] |
Gets the concatenated string representation of the platform identifier, version, and service pack that are currently installed on the operating system. More... | |
Represents information about an operating system, such as the version and platform identifier. This class cannot be inherited.
Definition at line 10 of file OperatingSystem.cs.
System.OperatingSystem.OperatingSystem | ( | PlatformID | platform, |
Version | version | ||
) |
Initializes a new instance of the T:System.OperatingSystem class, using the specified platform identifier value and version object.
platform | One of the T:System.PlatformID values that indicates the operating system platform. |
version | A T:System.Version object that indicates the version of the operating system. |
T:System.ArgumentNullException | version is null . |
T:System.ArgumentException | platform is not a T:System.PlatformID enumeration value. |
Definition at line 97 of file OperatingSystem.cs.
object System.OperatingSystem.Clone | ( | ) |
Creates an T:System.OperatingSystem object that is identical to this instance.
Implements System.ICloneable.
Definition at line 160 of file OperatingSystem.cs.
void System.OperatingSystem.GetObjectData | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Populates a T:System.Runtime.Serialization.SerializationInfo object with the data necessary to deserialize this instance.
info | The object to populate with serialization information. |
context | The place to store and retrieve serialized data. Reserved for future use. |
T:System.ArgumentNullException | info is null . |
Implements System.Runtime.Serialization.ISerializable.
Definition at line 147 of file OperatingSystem.cs.
override string System.OperatingSystem.ToString | ( | ) |
Converts the value of this T:System.OperatingSystem object to its equivalent string representation.
Definition at line 167 of file OperatingSystem.cs.
PlatformID System.OperatingSystem.Platform => _platform |
Gets a T:System.PlatformID enumeration value that identifies the operating system platform.
Definition at line 22 of file OperatingSystem.cs.
Version System.OperatingSystem.Version => _version |
Gets a T:System.Version object that identifies the operating system.
Definition at line 40 of file OperatingSystem.cs.
|
get |
Gets the service pack version represented by this T:System.OperatingSystem object.
Definition at line 27 of file OperatingSystem.cs.
|
get |
Gets the concatenated string representation of the platform identifier, version, and service pack that are currently installed on the operating system.
Definition at line 45 of file OperatingSystem.cs.