RuntimeInformation.IsOSPlatform(OSPlatform) Methode

Definition

Gibt an, ob die aktuelle Anwendung auf der angegebenen Plattform ausgeführt wird.

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

Parameter

osPlatform
OSPlatform

Eine Plattform.

Gibt zurück

truewenn die aktuelle App auf der angegebenen Plattform ausgeführt wird; andernfalls . false

Gilt für: