XmlDocument.OwnerDocument 属性

定义

获取当前节点所属的 XmlDocumentGets the XmlDocument to which the current node belongs.

public:
 virtual property System::Xml::XmlDocument ^ OwnerDocument { System::Xml::XmlDocument ^ get(); };
public override System.Xml.XmlDocument OwnerDocument { get; }
member this.OwnerDocument : System.Xml.XmlDocument
Public Overrides ReadOnly Property OwnerDocument As XmlDocument

属性值

对于 XmlDocument 节点(NodeType 等于 XmlNodeType.Document),该属性总是返回 nullFor XmlDocument nodes (NodeType equals XmlNodeType.Document), this property always returns null.

适用于