Mac Guides | Samples

MonoMac.Foundation.RegisterAttribute Class

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

See Also: RegisterAttribute

Syntax

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

Remarks

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.

Requirements

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

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

IsWrapperBoolean.
NameString. The name used to expose the class.