_XDocument2.GetDOM 方法 (String)

获取一个与 XDocument 对象相关联的指定 DataSourceObject 对象的 XML 文档对象模型 (DOM) 的引用。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
Function GetDOM ( _
    bstrName As String _
) As IXMLDOMDocument
用法
Dim instance As _XDocument2
Dim bstrName As String
Dim returnValue As IXMLDOMDocument

returnValue = instance.GetDOM(bstrName)
IXMLDOMDocument GetDOM(
    string bstrName
)

参数

返回值

类型:Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument
与 XDocument 对象相关联的指定 DataObject 对象的 XML 文档对象模型 (DOM) 的 IXMLDOMDocument。

实现

_XDocument.GetDOM(String)

备注

获取对 GetDOM 方法所返回的 XML DOM 的引用之后,可以使用 XML DOM 所支持的任何属性和方法操作 DOM 所包含的数据。

重要

此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。

示例

在以下示例中,XDocument 对象的 GetDOM 方法用于设置对其返回的 XML DOM(在本例中为 DataSourceObject)的引用

名为"CityDropDownList"的对象:

IXMLDOMDocument city = thisXDocument.GetDOM("CityDropDownList");

另请参阅

引用

_XDocument2 接口

_XDocument2 成员

GetDOM 重载

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间