Modifica

Condividi tramite


ISubmitToHostEventHandler.SubmitToHostEventHandler Method

Definition

Handles the event from the Submit() method of the SubmitToHostAdapterObject object when the InfoPathEditor object is hosted in a custom application.

public:
 int SubmitToHostEventHandler(System::Object ^ sender, System::String ^ adapterName, [Runtime::InteropServices::Out] System::String ^ % errorMessage);
public int SubmitToHostEventHandler (object sender, string adapterName, out string errorMessage);
abstract member SubmitToHostEventHandler : obj * string *  -> int
Public Function SubmitToHostEventHandler (sender As Object, adapterName As String, ByRef errorMessage As String) As Integer

Parameters

sender
Object

The object sending the notification to the host.

adapterName
String

The name of the SubmitToHostAdapter object.

errorMessage
String

The message returned to the InfoPathEditor object.

Returns

HRESULT

Remarks

The SubmitToHostEventHandler method of the ISubmitToHostEventHandler interface is available for use when the InfoPathEditor object is hosted in a custom application. For more information, see the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers and the MSDN article Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application

Applies to