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в противном случае .

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