Edit

Share via


_XDocument3.IsHosted Property

Definition

Gets whether InfoPath is hosted as a control in another application.

public:
 property bool IsHosted { bool get(); };
public bool IsHosted { get; }
member this.IsHosted : bool
Public ReadOnly Property IsHosted 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 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 detailed information about hosting InfoPath in another application, see the article titled "Hosting the InfoPath Editor in a Custom WinForm Application" on the InfoPath Developer Portal

Because the IsHosted property is new to Microsoft InfoPath, you must declare and cast to the _XDocument3 type to access this method. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

Applies to