XmlNode.OwnerDocument Propriedade
Definição
Obtém o XmlDocument ao qual esse nó pertence.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
Valor da propriedade
O XmlDocument ao qual pertence esse nó.The XmlDocument to which this node belongs.
Se o nó for um XmlDocument (NodeType igual a XmlNodeType.Document), essa propriedade retornará null.If the node is an XmlDocument (NodeType equals XmlNodeType.Document), this property returns null.
Exemplos
Consulte OwnerDocument (na classe XmlElement) para obter um exemplo usando essa propriedade.See OwnerDocument (in the XmlElement class) for an example using this property.
Comentários
Ao adicionar nós ao nó atual, use o XmlDocument retornado pela OwnerDocument propriedade para criar o nó.When adding nodes to the current node, use the XmlDocument returned by the OwnerDocument property to create the node.