편집

다음을 통해 공유


PlatformHelper Class

Definition

Caution

Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.

Utilities for working with the Platform enumeration.

[System.Obsolete("Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.")]
public static class PlatformHelper
type PlatformHelper = class
Inheritance
PlatformHelper
Attributes

Methods

CheckSystemVersion(Int32, Int32)

Checks if the version of the system is at least the specified version.

CompareIosVersion(Platform, Platform)

Compares two platform values.

CompareMacVersion(Platform, Platform)

Compares two platform values.

GetHostApiPlatform()

Returns a Platform enumeration value for the currently executing host machine.

Is64BitOnlyOnCurrentPlatform(Platform)

Check if the specified platform value is a 64-bit platform.

IsIos(Platform)

Determines if the specified platform is iOS.

IsMac(Platform)

Determines if the specified platform is MacOS.

IsValid(Platform)

Validates the Platform value against known API versions.

ParseApiPlatform(String, String)

Parses a platform name and string version number into a Platform enumeration value.

ToArch(Platform)

Get the architecture (32-bit or 64-bit) of the specified platform.

ToIosArch(Platform)

Get the architecture (32-bit or 64-bit) of the specified platform.

ToIosVersion(Platform)

Get the OS version of the specified platform value.

ToMacArch(Platform)

Get the architecture (32-bit or 64-bit) of the specified platform.

ToMacVersion(Platform)

Get the OS version of the specified platform value.

ToVersion(Platform)

Get the OS version of the specified platform value.

Applies to