Editar

Compartir a través de


ConnectAttribute Class

Definition

Exposes a property as an Interface Builder Outlet.

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class ConnectAttribute : Attribute
type ConnectAttribute = class
    inherit Attribute
Inheritance
ConnectAttribute
Attributes

Remarks

This property must be applied to properties that represent an Interface Builder Outlet on a XIB file to properly support loading XIB files. The name of the property must match the name of the outlet declared in Interface Builder.

This attribute and the property that it is applied to are automatically added by Xamarin Studio to any outlets in use that have been exposed in a class.

Constructors

ConnectAttribute()

Default constructor, uses the name of the property as the name of the outlet.

ConnectAttribute(String)

Use this constructor to specify the name of the underlying outlet to map to, instead of defaulting to the name of the property.

Properties

Name

The name of the outlet.

Applies to