XmlNode.OwnerDocument Właściwość

Definicja

Pobiera element XmlDocument , do którego należy ten węzeł.

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

Wartość właściwości

XmlDocument

Do XmlDocument którego należy ten węzeł.

Jeśli węzeł jest węzłem XmlDocument (NodeType jest równy XmlNodeType.Document), ta właściwość zwraca wartość null.

Przykłady

Zobacz OwnerDocument (w klasie XmlElement), aby zapoznać się z przykładem przy użyciu tej właściwości.

Uwagi

Podczas dodawania węzłów do bieżącego węzła użyj XmlDocument właściwości zwróconej przez OwnerDocument właściwość , aby utworzyć węzeł.

Dotyczy