Share via


InfoPathEditor.SetNotifyHostEventHandler Method

InfoPath Developer Reference

Sets the event handler in the host application for handling the event that occurs when the NotifyHost method of the XDocument object is used to notify the host application.

Version Information
 Version Added:  InfoPath 2007

Syntax

expression.SetNotifyHostEventHandler(pHandler)

expression   An expression that returns an InfoPathEditor object.

Parameters

Name Required/Optional Data Type Description
pHandler Required INotifyHostEventHandler The interface that must be implemented in the custom application to handle the event from the InfoPathEditor object.

Return Value
HResult

Remarks

The SetNotifyHostEventHandler method of the InfoPathEditor object is not intended to be used in custom form code. It is available for use when the InfoPathEditor object is hosted in a custom COM-based application. For more information, see Hosting InfoPath as an XML Editor in Another Application and What's New for InfoPath Developers.

This object or member is used for extending the InfoPath application and is not intended to be used directly from your form code.

See Also