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.

適用於