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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.