NativeAttribute NativeAttribute Class

Definition

This attributes tells the Xamarin.iOS runtime that the native enum this managed enum binds is using a native size for the platform as the size for each enum value (i.e. a 32-bit value on 32-bit architectures, and a 64-bit value on 64-bit architectures).

[System.AttributeUsage(System.AttributeTargets.Enum)]
public sealed class NativeAttribute : Attribute
type NativeAttribute = class
    inherit Attribute
Inheritance
NativeAttributeNativeAttribute
Attributes

Constructors

NativeAttribute() NativeAttribute()

Initializes a new Native attribute.

NativeAttribute(String) NativeAttribute(String)

Initializes a new Native attribute.

Properties

NativeName NativeName

The name of the corresponding native enum (in case it doesn't match the managed enum's name).

Applies to