Edit

Share via


ObjectiveCMarshal.SetMessageSendCallback Method

Definition

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