ObjectiveCMarshal.SetMessageSendCallback Metod

Definition

Ange en åsidosättning av funktionspekaren för ett Objective-C körningsmeddelande som skickar 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)

Parametrar

msgSendFunction
ObjectiveCMarshal.MessageSendFunction

Exporten som ska åsidosättas.

func
IntPtr

nativeint

Funktionen åsidosätter.

Undantag

Funktionen msgSend har redan åsidosatts.

Kommentarer

Om du anger en åsidosättning kan stöd för stöd för Objective-C variadic-argument aktiveras.

Gäller för