ObjCRuntime.AvailabilityAttribute Class
Describes the availability of a member or type in iOS or MacOS.

See Also: AvailabilityAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.All, AllowMultiple=true)]
public class AvailabilityAttribute : Attribute

Remarks

This attribute is used to annotate when a type or member of a type was introduced, deprecated, obsolete or is unavailable.    Thisis done on a per-platform basis (currently Mac OS X and iOS).

The information is only accurate for active versions of the operating systems, the information is removed as soon as operating systems are deprecated or no longer supported by Apple.

It is the managed equivalent of Clang's availability __attribute__, which is the underlying mechanism that Apple uses to perform these annotations.

Requirements

Namespace: ObjCRuntime
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0