BlockProxyAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這個屬性是用來通知執行時間,哪個類別是用來將 Objective-C 區塊包裝成 Managed 委派。
[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false)]
public sealed class BlockProxyAttribute : Attribute
type BlockProxyAttribute = class
inherit Attribute
- 繼承
-
BlockProxyAttribute
- 屬性
備註
Xamarin.iOS 的內部會使用此類型。
這個屬性會套用在參數上,並由 Xamarin.iOS 執行時間用來找出協助程式類別,該類別可用來將 Objective-C 區塊轉換成 Managed 委派,稍後可由 Managed 程式碼叫用以觸發原生區塊執行。
建構函式
BlockProxyAttribute(Type) |
指定用來將區塊 Proxy 到 Managed 委派的類型。 |
屬性
Type |
用來將 Objective-C 區塊 Proxy 到這個 Managed 參數的類型。 |