OperatingSystem.IsOSPlatform(String) Método
Definição
Indica se o aplicativo atual está em execução na plataforma especificada.Indicates whether the current application is running on the specified platform.
public:
static bool IsOSPlatform(System::String ^ platform);
public static bool IsOSPlatform (string platform);
static member IsOSPlatform : string -> bool
Public Shared Function IsOSPlatform (platform As String) As Boolean
Parâmetros
- platform
- String
O nome da plataforma que não diferencia maiúsculas de minúsculas.The case-insensitive platform name. Exemplos: Navegador, Linux, FreeBSD, Android, iOS, macOS, tvOS, watchOS, Windows.Examples: Browser, Linux, FreeBSD, Android, iOS, macOS, tvOS, watchOS, Windows.
Retornos
true se o aplicativo atual estiver em execução na plataforma especificada; caso contrário, false.true if the current application is running on the specified platform; false otherwise.