แก้ไข

แชร์ผ่าน


RuntimeInformation.IsOSPlatform(OSPlatform) Method

Definition

Indicates whether the current application is running on the specified platform.

public:
 static bool IsOSPlatform(System::Runtime::InteropServices::OSPlatform osPlatform);
public static bool IsOSPlatform (System.Runtime.InteropServices.OSPlatform osPlatform);
static member IsOSPlatform : System.Runtime.InteropServices.OSPlatform -> bool
Public Shared Function IsOSPlatform (osPlatform As OSPlatform) As Boolean

Parameters

osPlatform
OSPlatform

A platform.

Returns

true if the current app is running on the specified platform; otherwise, false.

Applies to