OperatingSystem 成员

表示有关操作系统的信息,如版本和平台标识符。无法继承此类。

下表列出了由 OperatingSystem 类型公开的成员。

公共构造函数

  名称 说明
Public method Supported by the .NET Compact Framework OperatingSystem 使用指定的平台标识符值和版本对象来初始化 OperatingSystem 类的新实例。

页首

公共属性

  名称 说明
Public property Supported by the .NET Compact Framework Platform 获取标识操作系统平台的 System.PlatformID 枚举值。
Public property ServicePack 获取此 OperatingSystem 对象表示的 Service Pack 版本。
Public property Supported by the .NET Compact Framework Version 获取标识操作系统的 System.Version 对象。
Public property VersionString 获取平台标识符、版本和当前安装在操作系统上的 Service Pack 的连接字符串表示形式。

页首

公共方法

  名称 说明
Public method Supported by the .NET Compact Framework Clone 创建与此实例相同的 OperatingSystem 对象。
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetObjectData 使用反序列化此实例所需的数据填充 System.Runtime.Serialization.SerializationInfo 对象。
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ToString 已重写。 将此 OperatingSystem 对象的值转换为其等效的字符串表示形式。

页首

请参见

参考

OperatingSystem 类
System 命名空间