Mac Guides | Samples

MonoMac.Foundation.OutletAttribute Class

Exposes the given property as an outlet to the Objective-C world.

See Also: OutletAttribute

Syntax

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class OutletAttribute : ExportAttribute

Remarks

This property is used to flag properties that need to be exposed as outlets to the Objective-C world. This is used both by the designer support as well connecting the managed object with the unmanaged Objective-C outlet.

C# Example

	    [Outlet ("mainWindow")]
	    UIWindows mainWindow  { get; set; }

Requirements

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

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

See Also: ExportAttribute

Public Constructors

Default constructor
Links the managed property with the specified Objective-C outlet.