ObjectiveCMarshal.SetMessageSendCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set a function pointer override for an Objective-C runtime message passing export.
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)
Parameters
- msgSendFunction
- ObjectiveCMarshal.MessageSendFunction
The export to override.
- func
-
IntPtr
nativeint
The function override.
Exceptions
The msgSend function has already been overridden.
Remarks
Providing an override can enable support for Objective-C variadic argument support.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.