通过


XmlAttribute.ParentNode 属性

定义

获取此节点的父级。 对于 XmlAttribute 节点,此属性始终返回 null

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

属性值

对于 XmlAttribute 节点,此属性始终返回 null

注解

使用 OwnerElement 属性获取 XmlElement 属性所属的属性。

适用于