MacAttribute Class

Definition

Caution

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

Attribute indicating when an API was first introduced on macOS.

[System.Obsolete("Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.")]
public sealed class MacAttribute : ObjCRuntime.AvailabilityAttribute
type MacAttribute = class
    inherit AvailabilityAttribute
Inheritance
Attributes

Remarks

This class is a shortcut to create an AvailabilityAttribute instance.

Constructors

MacAttribute(Byte, Byte)

Initializes a new availability attribute for macOS with the specified major and minor versions.

MacAttribute(Byte, Byte, Boolean)

Initializes a new availability attribute for macOS with the specified major and minor versions, and if the attribute only applies to 64-bit architectures.

MacAttribute(Byte, Byte, Byte)

Initializes a new availability attribute for macOS with the specified major, minor and subminor versions.

MacAttribute(Byte, Byte, Byte, Boolean)

Initializes a new availability attribute for macOS with the specified major, minor and subminor versions, and if the attribute only applies to 64-bit architectures.

MacAttribute(Byte, Byte, Byte, PlatformArchitecture)

Initializes a new availability attribute for macOS with the specified architecture, major, minor and subminor versions.

MacAttribute(Byte, Byte, PlatformArchitecture)

Initializes a new availability attribute for macOS with the specified architecture, major and minor versions.

Properties

AlwaysAvailable

Indicates that the member or type can be assumed to always be available (on both macOS and iOS, as well as every version that is currently supported).

(Inherited from AvailabilityAttribute)
Deprecated

The first version in which the API was deprecated for a given platform; this means users should begin avoiding the API and migrating to a more suitable one, but it still technically works on the platform, but there is no guarantee for how long it will continue to work.

(Inherited from AvailabilityAttribute)
DeprecatedArchitecture

Indicates the platforms on which the member or type has been deprecated.

(Inherited from AvailabilityAttribute)
DeprecatedVersion

Indicates the platforms on which the member or type has been deprecated.

(Inherited from AvailabilityAttribute)
Introduced

The first version in which an API was introduced for a given platform.

(Inherited from AvailabilityAttribute)
IntroducedArchitecture

The architectures on which the introduced version applies to.

(Inherited from AvailabilityAttribute)
IntroducedVersion

Indicates the versions on API the feature was introduced.

(Inherited from AvailabilityAttribute)
Message

The message describing any limitations.

(Inherited from AvailabilityAttribute)
Obsoleted

The first version in which the API was obsoleted from a given platform

(Inherited from AvailabilityAttribute)
ObsoletedArchitecture

The architectures the obsoleted version applies to.

(Inherited from AvailabilityAttribute)
ObsoletedVersion

Indicates the version in which the API was obsoleted.

(Inherited from AvailabilityAttribute)
Unavailable

The API does currently not exist on a given platform.

(Inherited from AvailabilityAttribute)

Methods

ToString()

Returns a human readable version of the availability attribute.

(Inherited from AvailabilityAttribute)

Applies to