XPathNavigator.SelectDescendants 메서드

정의

선택 조건에 맞는 현재 노드의 하위 노드를 모두 선택합니다.

오버로드

SelectDescendants(XPathNodeType, Boolean)

XPathNodeType이 일치하는 현재 노드의 하위 노드를 모두 선택합니다.

SelectDescendants(String, String, Boolean)

지정된 로컬 이름과 네임스페이스 URI를 사용하는 현재 노드의 하위 노드를 모두 선택합니다.

SelectDescendants(XPathNodeType, Boolean)

Source:
XPathNavigator.cs
Source:
XPathNavigator.cs
Source:
XPathNavigator.cs

XPathNodeType이 일치하는 현재 노드의 하위 노드를 모두 선택합니다.

public:
 virtual System::Xml::XPath::XPathNodeIterator ^ SelectDescendants(System::Xml::XPath::XPathNodeType type, bool matchSelf);
public virtual System.Xml.XPath.XPathNodeIterator SelectDescendants (System.Xml.XPath.XPathNodeType type, bool matchSelf);
abstract member SelectDescendants : System.Xml.XPath.XPathNodeType * bool -> System.Xml.XPath.XPathNodeIterator
override this.SelectDescendants : System.Xml.XPath.XPathNodeType * bool -> System.Xml.XPath.XPathNodeIterator
Public Overridable Function SelectDescendants (type As XPathNodeType, matchSelf As Boolean) As XPathNodeIterator

매개 변수

type
XPathNodeType

하위 노드의 XPathNodeType입니다.

matchSelf
Boolean

선택할 때 컨텍스트 노드를 포함하려면 true이고, 그렇지 않으면 false입니다.

반환

선택된 노드가 포함된 XPathNodeIterator입니다.

예제

상위 노드, 자식 및 하위 노드를 선택하는 예제는 를 참조하세요 SelectAncestors.

설명

메서드는 SelectDescendantsXPathNavigator상태에 영향을 주지 않습니다.

추가 정보

적용 대상

SelectDescendants(String, String, Boolean)

Source:
XPathNavigator.cs
Source:
XPathNavigator.cs
Source:
XPathNavigator.cs

지정된 로컬 이름과 네임스페이스 URI를 사용하는 현재 노드의 하위 노드를 모두 선택합니다.

public:
 virtual System::Xml::XPath::XPathNodeIterator ^ SelectDescendants(System::String ^ name, System::String ^ namespaceURI, bool matchSelf);
public virtual System.Xml.XPath.XPathNodeIterator SelectDescendants (string name, string namespaceURI, bool matchSelf);
abstract member SelectDescendants : string * string * bool -> System.Xml.XPath.XPathNodeIterator
override this.SelectDescendants : string * string * bool -> System.Xml.XPath.XPathNodeIterator
Public Overridable Function SelectDescendants (name As String, namespaceURI As String, matchSelf As Boolean) As XPathNodeIterator

매개 변수

name
String

하위 노드의 로컬 이름입니다.

namespaceURI
String

하위 노드의 네임스페이스 URI입니다.

matchSelf
Boolean

선택할 때 컨텍스트 노드를 포함하려면 true이고, 그렇지 않으면 false입니다.

반환

선택된 노드가 포함된 XPathNodeIterator입니다.

예외

null을 매개 변수로 전달할 수 없습니다.

예제

상위 노드, 자식 및 하위 노드를 선택하는 예제는 를 참조하세요 SelectAncestors.

설명

가 매개 변수로 name 지정된 경우 String.Empty 지정된 네임스페이스 URI에 속하는 모든 하위 노드가 선택됩니다. 가 매개 변수로 namespaceURI 지정된 경우 String.Empty 네임스페이스에 속하지 않는 지정된 로컬 이름을 가진 모든 하위 노드가 선택됩니다. 로컬 이름 및 네임스페이스 URI 매개 변수가 String.Empty모두 이면 네임스페이스에 속하지 않는 모든 하위 노드가 선택됩니다.

하위 항목은 자식 또는 자식의 자식입니다. 따라서 선택한 노드에는 특성 또는 네임스페이스 노드가 포함되지 않습니다.

메서드는 SelectDescendantsXPathNavigator상태에 영향을 주지 않습니다.

추가 정보

적용 대상