ObjectiveCMarshal.SetMessageSendCallback Método

Definição

Defina um override de ponteiro de função para uma Objective-C de exportação de mensagens em tempo de execução.

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)

Parâmetros

msgSendFunction
ObjectiveCMarshal.MessageSendFunction

A exportação para sobrescrição.

func
IntPtr

nativeint

A substituição da função.

Exceções

A função msgSend já foi sobreposta.

Observações

Fornecer um override pode permitir suporte para Objective-C suporte de argumentos variádicos.

Aplica-se a