OSPlatform.Equality(OSPlatform, OSPlatform) 演算子

定義

2 つの OSPlatform オブジェクトが等しいかどうかを判断します。

public:
 static bool operator ==(System::Runtime::InteropServices::OSPlatform left, System::Runtime::InteropServices::OSPlatform right);
public static bool operator == (System.Runtime.InteropServices.OSPlatform left, System.Runtime.InteropServices.OSPlatform right);
static member ( = ) : System.Runtime.InteropServices.OSPlatform * System.Runtime.InteropServices.OSPlatform -> bool
Public Shared Operator == (left As OSPlatform, right As OSPlatform) As Boolean

パラメーター

left
OSPlatform

比較する最初のオブジェクト。

right
OSPlatform

比較する 2 番目のオブジェクト。

戻り値

leftright が等しい場合は true。それ以外の場合は false

注釈

2 つの OSPlatform インスタンスが同じ名前の場合は等しくなります。 オブジェクトの OSPlatform 名前は、 メソッドに osPlatform 渡される Create 文字列です。 静的 OSPlatform プロパティによって返されるオブジェクトの OSPlatform 名前は、"FREEBSD"、"LINUX"、"OSX"、および "WINDOWS" です。 メソッドは序数比較を使用して、名前が同じかどうかを判断します。

適用対象