RuntimeInformation.IsOSPlatform(OSPlatform) Метод

Определение

Указывает, выполняется ли текущее приложение на указанной платформе.

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

Параметры

osPlatform
OSPlatform

Платформа.

Возвращаемое значение

Значение true, если текущее приложение выполняется на указанной платформе; в противном случае — значение false.

Применяется к