OSPlatform OSPlatform OSPlatform OSPlatform Struct

定义

表示一种操作系统平台。Represents an operating system platform.

public value class OSPlatform : IEquatable<System::Runtime::InteropServices::OSPlatform>
public struct OSPlatform : IEquatable<System.Runtime.InteropServices.OSPlatform>
type OSPlatform = struct
Public Structure OSPlatform
Implements IEquatable(Of OSPlatform)
继承
OSPlatformOSPlatformOSPlatformOSPlatform
实现

属性

FreeBSD FreeBSD FreeBSD FreeBSD

获取表示 FreeBSD 操作系统的对象。Gets an object that represents the FreeBSD operating system.

Linux Linux Linux Linux

获取表示 Linux 操作系统的对象。Gets an object that represents the Linux operating system.

OSX OSX OSX OSX

获取表示 OSX 操作系统的对象。Gets an object that represents the OSX operating system.

Windows Windows Windows Windows

获取表示 Windows 操作系统的对象。Gets an object that represents the Windows operating system.

方法

Create(String) Create(String) Create(String) Create(String)

创建一个新的 OSPlatform 实例。Creates a new OSPlatform instance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定当前 OSPlatform 实例是否与指定对象相等。Determines whether the current OSPlatform instance is equal to the specified object.

Equals(OSPlatform) Equals(OSPlatform) Equals(OSPlatform) Equals(OSPlatform)

确定当前实例是否等同于指定的 OSPlatform 实例。Determines whether the current instance and the specified OSPlatform instance are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

ToString() ToString() ToString() ToString()

返回此 OSPlatform 实例的字符串表示形式。Returns the string representation of this OSPlatform instance.

操作员

Equality(OSPlatform, OSPlatform) Equality(OSPlatform, OSPlatform) Equality(OSPlatform, OSPlatform) Equality(OSPlatform, OSPlatform)

确定两个 OSPlatform 对象是否相等。Determines whether two OSPlatform objects are equal.

Inequality(OSPlatform, OSPlatform) Inequality(OSPlatform, OSPlatform) Inequality(OSPlatform, OSPlatform) Inequality(OSPlatform, OSPlatform)

确定两个 OSPlatform 实例是否不相等。Determines whether two OSPlatform instances are unequal.

适用于