Share via


XPathNavigator.HasChildren 속성

정의

현재 노드에 자식 노드가 있는지를 나타내는 값을 가져옵니다.

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

속성 값

Boolean

현재 노드에 자식 노드가 있으면 true이고, 그렇지 않으면 false입니다.

설명

자식 노드를 XPathNavigator 가질 수 없는 노드에 위치 하는 경우 속성은 HasChildren 항상 반환 합니다 false.

다음 표에서는 각 XPathNodeType 노드에 허용되는 자식 노드 XPathNodeType 노드를 나열합니다.

XPathNodeType 노드 자식 XPathNodeType 노드
Root Element, Comment또는 ProcessingInstruction 노드입니다. 참고: DocumentFragment 는 클래스를 Root XmlDocument 사용할 때와 동일하며 요소와 동일한 자식을 가질 수 있습니다.
Element Element, Text, CommentProcessingInstructionWhitespace 또는 SignificantWhitespace 노드입니다.
다른 XPathNodeType 모든 노드 자식 노드를 가질 수 없습니다.

적용 대상

추가 정보