XmlNode.OwnerDocument 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得該節點所屬的 。XmlDocument
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
屬性值
這個節點所屬的 。XmlDocument
若節點為 XmlDocument (NodeType 等於 XmlNodeType.Document),則此屬性會回傳 null。
範例
請參見 OwnerDocument (在 XmlElement 類別中)使用此特性的範例。
備註
在將節點加入目前節點時,請使用 XmlDocument return by 屬性 OwnerDocument 來建立該節點。