FormControl.SetNotifyHostEventHandler(INotifyHostEventHandler) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the event handler in the host application for handling the event that occurs when the NotifyHost(String) method of the XDocument object is used to notify the host application.
public:
virtual void SetNotifyHostEventHandler(Microsoft::Office::Interop::InfoPath::INotifyHostEventHandler ^ handler);
public virtual void SetNotifyHostEventHandler (Microsoft.Office.Interop.InfoPath.INotifyHostEventHandler handler);
abstract member SetNotifyHostEventHandler : Microsoft.Office.Interop.InfoPath.INotifyHostEventHandler -> unit
override this.SetNotifyHostEventHandler : Microsoft.Office.Interop.InfoPath.INotifyHostEventHandler -> unit
Public Overridable Sub SetNotifyHostEventHandler (handler As INotifyHostEventHandler)
Parameters
- handler
- INotifyHostEventHandler
The interface that must be implemented in the custom application to handle the event from the FormControl object.
Remarks
For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application