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-C 变量参数支持的支持。

适用于