XmlNode.OwnerDocument Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the XmlDocument to which this node belongs.
public:
virtual property System::Xml::XmlDocument ^ OwnerDocument { System::Xml::XmlDocument ^ get(); };
public virtual System.Xml.XmlDocument OwnerDocument { get; }
public virtual System.Xml.XmlDocument? OwnerDocument { get; }
member this.OwnerDocument : System.Xml.XmlDocument
Public Overridable ReadOnly Property OwnerDocument As XmlDocument
Property Value
The XmlDocument to which this node belongs.
If the node is an XmlDocument (NodeType equals XmlNodeType.Document), this property returns null
.
Examples
See OwnerDocument (in the XmlElement class) for an example using this property.
Remarks
When adding nodes to the current node, use the XmlDocument returned by the OwnerDocument property to create the node.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.