Foundation.ExportAttribute Class
Exports a method or property to the Objective-C world.

See Also: ExportAttribute Members


[System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.All)]
public class ExportAttribute : Attribute


This attribute is applied to properties and methods in classes that derive from Foundation.NSObject to export the value to the Objective-C world. This can be used either to respond to messages or to override an Objective-C method.

C# Example

public class Test : SomeBaseClass {
    [Export ("setText:withFont:")]
    public void SetText (string text, string font)


Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: