共用方式為


ObjectiveCMarshal.SetMessageSendCallback 方法

定義

為傳遞導出的 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 自變數支持的支援。

適用於