Share via


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

속성 값

Boolean

현재 노드가 빈 요소이면 true이고, 그렇지 않으면 false입니다.

설명

이 속성을 사용하면 다음과 같은 다른 요소 간의 차이를 확인할 수 있습니다.

요소 IsEmptyElement 값
<item num="123"/> true
<item num="123">test</item> false
<item num="123"></item> false

적용 대상