Mac Guides | Samples

MonoMac.Foundation.RegisterAttribute Class

Used to register a class to the Objective-C runtime.

See Also: RegisterAttribute


[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.All)]
public sealed class RegisterAttribute : Attribute


All classes derived from the NSObject class are exposed to the Objective-C world. But in some cases you might want to expose the class with a different name to the runtime.

It is used internally by MonoMac.


Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions:

The members of MonoMac.Foundation.RegisterAttribute are listed below.

See Also: Attribute

Public Constructors

Used to specify how the ECMA class is exposed as an Objective-C class.

Public Properties

NameString. The name used to expose the class.