Share via


_XDocument3.Solution property

Gets a reference to the SolutionObject object that is associated with a Microsoft Office InfoPath form.

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

Syntax

'Declaration
ReadOnly Property Solution As SolutionObject
    Get
'Usage
Dim instance As _XDocument3
Dim value As SolutionObject

value = instance.Solution
SolutionObject Solution { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath.SolutionObject
A reference to the SolutionObject object that is associated with a form

Implements

_XDocument2.Solution

Remarks

The Solution property provides access to information about a form's associated form definition (.xsf) file, including access to an XML Document Object Model (DOM) that contains all of the source XML of the .xsf file.

Examples

In the following example, the Solution property of the XDocument object is used to load a variable with the XML contents of the .xsf file:

string xsf;
xsf = thisXDocument.Solution.DOM.xml;

See also

Reference

_XDocument3 interface

_XDocument3 members

Solution overload

Microsoft.Office.Interop.InfoPath namespace