Прочетете на английски Редактиране

Споделяне чрез


OperatingSystem.IsMacCatalystVersionAtLeast(Int32, Int32, Int32) Method

Definition

Check for the Mac Catalyst version (iOS version as presented in Apple documentation) with a ≤ version comparison. Used to guard APIs that were added in the given Mac Catalyst release.

C#
public static bool IsMacCatalystVersionAtLeast(int major, int minor = 0, int build = 0);

Parameters

major
Int32

The version major number.

minor
Int32

The version minor number.

build
Int32

The version build number.

Returns

true if the Mac Catalyst version is greater or equal than the specified version comparison; false otherwise.

Applies to

Продукт Версии
.NET 6, 7, 8, 9, 10