XPathNavigator.IsEmptyElement 属性

定义

在派生类中重写时,获取一个值,该值指示当前节点是否为空元素,而不带结束元素标记。

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

属性值

true 如果当前节点为空元素,则为 ;否则,为 false.

注解

此属性使你能够确定以下不同元素之间的差异。

元素 IsEmptyElement 值
<item num="123"/> true
<item num="123">test</item> false
<item num="123"></item> false

适用于