OperatingSystem.IsIOS Method

Definition

Indicates whether the current application is running on iOS or MacCatalyst.

C#
[System.Runtime.Versioning.SupportedOSPlatformGuard("maccatalyst")]
public static bool IsIOS();
C#
public static bool IsIOS();

Returns

true if the current application is running on iOS or MacCatalyst; false otherwise.

Attributes

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10