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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.