Sdílet prostřednictvím


DelegateProxyAttribute Class

Definition

This attribute is used to notify the runtime which class is used to wrap managed delegates into Objective-C blocks.

[System.AttributeUsage(System.AttributeTargets.ReturnValue, AllowMultiple=false)]
public sealed class DelegateProxyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.ReturnValue, AllowMultiple=false)>]
type DelegateProxyAttribute = class
    inherit Attribute
Inheritance
DelegateProxyAttribute
Attributes

Remarks

This type is used by the internals of Xamarin.iOS.

This attribute is applied on return types and is used by the Xamarin.iOS runtime to locate the helper class that is used to turn a managed delegate into an Objective-C block that can later be invoked by native code to trigger a managed execution.

Constructors

Name Description
DelegateProxyAttribute(Type)

Specifies the delegate type that is used to proxy managed delegates into Objective-C blocks.

Properties

Name Description
DelegateType

The delegate type that is used to proxy managed delegates into Objective-C blocks.

Applies to