XmlForm.Hosted Property
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.
Gets whether InfoPath is hosted as a control in another application.
public:
abstract property bool Hosted { bool get(); };
public abstract bool Hosted { get; }
member this.Hosted : bool
Public MustOverride ReadOnly Property Hosted As Boolean
Property Value
true if InfoPath is hosted as a control in another application; otherwise false.
Remarks
This property is intended for use in scenarios where InfoPath is hosted as a control in another application.
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
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.