XPathNavigator.HasChildren 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
현재 노드에 자식 노드가 있는지를 나타내는 값을 가져옵니다.
public:
virtual property bool HasChildren { bool get(); };
public:
abstract property bool HasChildren { bool get(); };
public virtual bool HasChildren { get; }
public abstract bool HasChildren { get; }
member this.HasChildren : bool
Public Overridable ReadOnly Property HasChildren As Boolean
Public MustOverride ReadOnly Property HasChildren As Boolean
속성 값
현재 노드에 자식 노드가 있으면 true
이고, 그렇지 않으면 false
입니다.
설명
자식 노드를 XPathNavigator 가질 수 없는 노드에 위치 하는 경우 속성은 HasChildren 항상 반환 합니다 false
.
다음 표에서는 각 XPathNodeType 노드에 허용되는 자식 노드 XPathNodeType 노드를 나열합니다.
XPathNodeType 노드 | 자식 XPathNodeType 노드 |
---|---|
Root | Element, Comment또는 ProcessingInstruction 노드입니다. 참고: DocumentFragment 는 클래스를 Root XmlDocument 사용할 때와 동일하며 요소와 동일한 자식을 가질 수 있습니다. |
Element | Element, Text, CommentProcessingInstructionWhitespace 또는 SignificantWhitespace 노드입니다. |
다른 XPathNodeType 모든 노드 | 자식 노드를 가질 수 없습니다. |