Freigeben über


_XDocument4.DOM Eigenschaft

Definition

Ruft einen Verweis auf das einem Formular zugrunde liegende XML-Dokument in Form von XML-DOM (Document Object Model) ab.

public:
 property Microsoft::Office::Interop::InfoPath::Xml::IXMLDOMDocument ^ DOM { Microsoft::Office::Interop::InfoPath::Xml::IXMLDOMDocument ^ get(); };
public Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMDocument DOM { get; }
member this.DOM : Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMDocument
Public ReadOnly Property DOM As IXMLDOMDocument

Eigenschaftswert

Gibt zurück IXMLDOMDocument.

Implementiert

DOM

Beispiele

// Retrieve the Employees Adapter from the DataAdapters collection.ADOAdapter employeesDA =   (ADOAdapter)thisXDocument.DataAdapters["Employees"];// Get employee’s ID from the main DOMstring employeeID =    thisXDocument.
<span class="label">DOM</span>
.selectSingleNode("//my:field2").text;// Change the ADOAdapter’s command to retrieve the record // of the Employee's ID entered by the useremployeesDA.Command =    "select * from Employees where EmployeeID="+employeeID;// Get DataObject from the DataObjects collection and // call Query to refresh the data object.DataSourceObject employeesDO =   (DataSourceObject)thisXDocument.DataObjects["Employees"];employeesDO.Query();
// Retrieve the Employees Adapter from the DataAdapters collection.ADOAdapter employeesDA =   (ADOAdapter)thisXDocument.DataAdapters["Employees"];// Get employee’s ID from the main DOMstring employeeID =    thisXDocument.
<span class="label">DOM</span>
.selectSingleNode("//my:field2").text;// Change the ADOAdapter’s command to retrieve the record // of the Employee's ID entered by the useremployeesDA.Command =    "select * from Employees where EmployeeID="+employeeID;// Get DataObject from the DataObjects collection and // call Query to refresh the data object.DataSourceObject employeesDO =   (DataSourceObject)thisXDocument.DataObjects["Employees"];employeesDO.Query();

Hinweise

Die XDocument-Eigenschaft ist eine zentrale Eigenschaft des DOM und ermöglicht es Ihnen, auf die XML-Quelldaten eines Formulars programmgesteuert zuzugreifen und sie zu bearbeiten. Nachdem Sie einen Verweis auf XML-DOM festgelegt haben, das die XML-Quelldaten eines Formulars enthält, können Sie alle von XML-DOM unterstützten Eigenschaften und Methoden verwenden.

Gilt für: