OperatingSystem.IsWatchOS Method

Definition

Indicates whether the current application is running on watchOS.

public static bool IsWatchOS();

Returns

true if the current application is running on watchOS; false otherwise.

Applies to

Produkt Verze
.NET 5, 6, 7, 8, 9, 10