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