Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlNode::OwnerDocument Property

 

Gets the XmlDocument to which this node belongs.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public:
property XmlDocument^ OwnerDocument {
	virtual XmlDocument^ get();
}

Property Value

Type: System.Xml::XmlDocument^

The XmlDocument to which this node belongs.

If the node is an XmlDocument (NodeType equals XmlNodeType.Document), this property returns null.

When adding nodes to the current node, use the XmlDocument returned by the OwnerDocument property to create the node.

See OwnerDocument (in the XmlElement class) for an example using this property.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft