Share via


ISubmitToHostEventHandler.SubmitToHostEventHandler Method

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

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Function SubmitToHostEventHandler ( _
    sender As Object, _
    adapterName As String, _
    <OutAttribute> ByRef errorMessage As String _
) As Integer
'Usage
Dim instance As ISubmitToHostEventHandler
Dim sender As Object
Dim adapterName As String
Dim errorMessage As String
Dim returnValue As Integer

returnValue = instance.SubmitToHostEventHandler(sender, _
    adapterName, errorMessage)
int SubmitToHostEventHandler(
    Object sender,
    string adapterName,
    out string errorMessage
)

Parameters

  • sender
    Type: System.Object

    The object sending the notification to the host.

  • adapterName
    Type: System.String

    The name of the SubmitToHostAdapter object.

  • errorMessage
    Type: System.String

    The message returned to the InfoPathEditor object.

Return Value

Type: System.Int32
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.

See Also

Reference

ISubmitToHostEventHandler Interface

ISubmitToHostEventHandler Members

Microsoft.Office.Interop.InfoPath Namespace