次の方法で共有


ownerDocument Property (Windows Embedded CE 6.0)

1/6/2010

Returns the root of the document that contains the node.

Script Syntax

var objXMLDOMDocument = oXMLDOMNode.ownerDocument;

Remarks

Ee502091.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee502091.collapse(en-US,WinEmbedded.60).gifScript Return Value

Object. Returns the parent document that represents the root of the document with this node.

Ee502091.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_ownerDocument(
  IXMLDOMDocument** DOMDocument
);

Remarks

Ee502091.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • DOMDocument
    [out, retval] Address of the parent document object that represents the root of the document.

Ee502091.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.
  • E_INVALIDARG
    Value returned if DOMDocument is Null.

Ee502091.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

All nodes are created in the context of a document, and the ownerDocument property is maintained until the node is added to another document. For a node removed from a document, this property indicates the document in which the node was last included.

This property is read-only, and applies to the following objects and interfaces:

IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime

See Also

Reference

XML DOM Properties