ObjectiveCMarshal.SetMessageSendCallback 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為傳遞導出的 Objective-C 運行時間訊息設定函式指標覆寫。
public:
static void SetMessageSendCallback(System::Runtime::InteropServices::ObjectiveC::ObjectiveCMarshal::MessageSendFunction msgSendFunction, IntPtr func);
public static void SetMessageSendCallback (System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.MessageSendFunction msgSendFunction, IntPtr func);
static member SetMessageSendCallback : System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.MessageSendFunction * nativeint -> unit
Public Shared Sub SetMessageSendCallback (msgSendFunction As ObjectiveCMarshal.MessageSendFunction, func As IntPtr)
參數
- msgSendFunction
- ObjectiveCMarshal.MessageSendFunction
要覆寫的導出。
- func
-
IntPtr
nativeint
函式覆寫。
例外狀況
msgSend 函式已經覆寫。
備註
提供覆寫可啟用 Objective-Cvariadic 自變數支持的支援。