XPathNavigator.IsDescendant(XPathNavigator) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 XPathNavigator 항목이 현재 XPathNavigator항목의 하위 항목인지 여부를 확인합니다.
public:
virtual bool IsDescendant(System::Xml::XPath::XPathNavigator ^ nav);
public virtual bool IsDescendant(System.Xml.XPath.XPathNavigator? nav);
public virtual bool IsDescendant(System.Xml.XPath.XPathNavigator nav);
abstract member IsDescendant : System.Xml.XPath.XPathNavigator -> bool
override this.IsDescendant : System.Xml.XPath.XPathNavigator -> bool
Public Overridable Function IsDescendant (nav As XPathNavigator) As Boolean
매개 변수
- nav
- XPathNavigator
이 XPathNavigatorXPathNavigator경우와 비교할 수 있습니다.
반품
true 지정된 XPathNavigator 값이 현재 XPathNavigator하위 항목이면 이고, false그렇지 않으면 .
설명
현재 XPathNavigator 노드의 XPathNavigator 하위 노드에 배치되는 경우 현재 항목의 XPathNavigator하위 항목입니다. 예를 들어 다음 XML 문자열을 예로 들어 보세요.
<item><name>widget</name></item>
현재 XPathNavigator 가 노드에 item 배치되고 XPathNavigator 지정된 값이 노드 name 에 IsDescendant 배치되면 반환됩니다true.
이 메서드는 항상 다음 조건에서 반환 false 합니다.
지정된 구현은 XPathNavigator 동일한 구현을 공유하지만 현재 탐색기가 아닌 다른 문서 인스턴스를 가리킵니다.
XPathNavigator 지정된 구현이 현재 탐색기와 다릅니다.