PlatformHelper PlatformHelper Class

Definition

Warning

This API is now obsolete.

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
PlatformHelperPlatformHelper
Attributes

Methods

CheckSystemVersion(Int32, Int32) CheckSystemVersion(Int32, Int32)

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

CompareIosVersion(Platform, Platform) CompareIosVersion(Platform, Platform)

Compares two platform values.

CompareMacVersion(Platform, Platform) CompareMacVersion(Platform, Platform)

Compares two platform values.

GetHostApiPlatform() GetHostApiPlatform()

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

Is64BitOnlyOnCurrentPlatform(Platform) Is64BitOnlyOnCurrentPlatform(Platform)

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

IsIos(Platform) IsIos(Platform)

Determines if the specified platform is iOS.

IsMac(Platform) IsMac(Platform)

Determines if the specified platform is MacOS.

IsValid(Platform) IsValid(Platform)

Validates the Platform value against known API versions.

ParseApiPlatform(String, String) ParseApiPlatform(String, String)

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

ToArch(Platform) ToArch(Platform)

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

ToIosArch(Platform) ToIosArch(Platform)

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

ToIosVersion(Platform) ToIosVersion(Platform)

Get the OS version of the specified platform value.

ToMacArch(Platform) ToMacArch(Platform)

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

ToMacVersion(Platform) ToMacVersion(Platform)

Get the OS version of the specified platform value.

ToVersion(Platform) ToVersion(Platform)

Get the OS version of the specified platform value.

Applies to