Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XmlForm.Host Property

Gets a System.Object that code running in a hosted instance of InfoPath can use to access the object model of the host application.

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

public abstract Object Host { get; }

Property Value

Type: System.Object
A System.Object that represents the method defined in the host application for accessing that application's object model.

This property is only used for scenarios where InfoPath is hosted as a control in another application and code running in InfoPath needs to access the object model of the host application. By default, the value of this property is set to a null reference (Nothing in Visual Basic).

For more information and a brief overview of hosting InfoPath in another application, see "The InfoPath Editor Hosted as a Control" in What's New for InfoPath Developers. For more information about hosting InfoPath in another application, see the article titled "Hosting the InfoPath Editing Environment in a Custom Windows Form Application" on the InfoPath Developer Portal on MSDN.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

Show:
© 2015 Microsoft