_XDocument2.Solution 属性
获取一个与表单关联的 SolutionObject 对象的引用。
命名空间: Microsoft.Office.Interop.InfoPath.SemiTrust
程序集: Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)
语法
声明
ReadOnly Property Solution As SolutionObject
Get
用法
Dim instance As _XDocument2
Dim value As SolutionObject
value = instance.Solution
SolutionObject Solution { get; }
属性值
类型:Microsoft.Office.Interop.InfoPath.SemiTrust.SolutionObject
实现
备注
Solution 属性可访问有关表单的关联表单定义 (.xsf) 文件的信息,包括访问包含 .xsf 文件的所有源 XML 的 XML 文档对象模型 (DOM)。
重要
此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。
示例
在以下示例中,XDocument 对象的 Solution 属性用于加载一个带有 .xsf 文件的 XML 内容的变量:
string xsf;
xsf = thisXDocument.Solution.DOM.xml;