OperatingSystem.IsOSPlatform(String) Methode

Definitie

Geeft aan of de huidige toepassing wordt uitgevoerd op het opgegeven 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

Parameters

platform
String

De naam van het niet-hoofdlettergevoelige platform. Voorbeelden: Browser, Linux, FreeBSD, Android, iOS, macOS, tvOS, watchOS, Windows.

Retouren

true als de huidige toepassing wordt uitgevoerd op het opgegeven platform; false Anders.

Van toepassing op