Share via


_XDocument3.IsHosted property

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

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

Syntax

'Declaration
ReadOnly Property IsHosted As Boolean
    Get
'Usage
Dim instance As _XDocument3
Dim value As Boolean

value = instance.IsHosted
bool IsHosted { get; }

Property value

Type: System.Boolean
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 on MSDN.

See also

Reference

_XDocument3 interface

_XDocument3 members

Microsoft.Office.Interop.InfoPath namespace