次の方法で共有


_XDocument2.Solution Property

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

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

Syntax

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

value = instance.Solution
SolutionObject Solution { get; }

Property Value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.SolutionObject

Implements

_XDocument.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.

Important

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.

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

_XDocument2 Interface

_XDocument2 Members

Solution Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace