RuntimeInformation.IsOSPlatform(OSPlatform) Metódus

Definíció

Azt jelzi, hogy az aktuális alkalmazás a megadott platformon fut-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éterek

osPlatform
OSPlatform

Egy platform.

Válaszok

trueha az aktuális alkalmazás a megadott platformon fut; egyéb esetben. false

A következőre érvényes: