Foundation.ActionAttribute Class
Flags a method to respond to an Objective-C action

See Also: ActionAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class ActionAttribute : ExportAttribute

Remarks

You can apply this attribute to a method, turning it into an action that can be invoked by the Objective-C world.

C# Example

	    [Action ("clicked:")]
	    void Submit (NSObject sender)
	    {
		    // User has clicked on the Submit button, respond to this action
	    }
	  

Requirements

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