RuntimeInformation.IsOSPlatform(OSPlatform) Méthode

Définition

Indique si l’application actuelle est en cours d’exécution sur la plateforme spécifiée.

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

Paramètres

osPlatform
OSPlatform

Une plateforme.

Retours

true si l’application actuelle s’exécute sur la plateforme spécifiée ; sinon, false.

S’applique à