XPathNavigator.HasAttributes 属性

定义

获取一个值,该值指示当前节点是否有任何属性。

public:
 virtual property bool HasAttributes { bool get(); };
public:
 abstract property bool HasAttributes { bool get(); };
public virtual bool HasAttributes { get; }
public abstract bool HasAttributes { get; }
member this.HasAttributes : bool
Public Overridable ReadOnly Property HasAttributes As Boolean
Public MustOverride ReadOnly Property HasAttributes As Boolean

属性值

Boolean

true 如果当前节点具有属性,则为如果 false 当前节点没有属性,或者未定位在元素节点上,则 XPathNavigator 返回。

适用于

另请参阅