Sdílet prostřednictvím


ObjectiveCMarshal.SetMessageSendCallback Metoda

Definice

Nastavte přepsání ukazatele na funkci pro zprávu modulu runtime Objective-C předávající 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)

Parametry

msgSendFunction
ObjectiveCMarshal.MessageSendFunction

Export, který se má přepsat.

func
IntPtr

nativeint

Přepsání funkce

Výjimky

Funkce msgSend již byla přepsána.

Poznámky

Poskytnutí přepsání může umožnit podporu pro podporu argumentů Objective-C variadic.

Platí pro