RuntimeInformation.IsOSPlatform(OSPlatform) Yöntem

Tanım

Geçerli uygulamanın belirtilen platformda çalışıp çalışmadığını gösterir.

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

Parametreler

osPlatform
OSPlatform

Bir platform.

Döndürülenler

true geçerli uygulama belirtilen platformda çalışıyorsa; aksi takdirde , false.

Şunlara uygulanır