Share via


INotifyHostEventHandler.NotifyHostEventHandler method

Handles the event from the NotifyHost method of the XDocument 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
Sub NotifyHostEventHandler ( _
    sender As Object, _
    notification As String _
)
'Usage
Dim instance As INotifyHostEventHandler
Dim sender As Object
Dim notification As String

instance.NotifyHostEventHandler(sender, _
    notification)
void NotifyHostEventHandler(
    Object sender,
    string notification
)

Parameters

  • sender
    Type: System.Object

    The object sending the notification to the host.

  • notification
    Type: System.String

    The contents of the message sent from the NotifyHost method.

Remarks

For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.

See also

Reference

INotifyHostEventHandler interface

INotifyHostEventHandler members

Microsoft.Office.Interop.InfoPath namespace