System::Xml::XmlReader::ReadToDescendant methode

XmlReader::ReadToDescendant(String, String) method

Verplaatst de XmlReader naar het volgende afstammings‑element met de opgegeven lokale naam en namespace‑URI.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
ParameterTypeBeschrijving
localNameStringDe lokale naam van het element waarnaar u wilt verplaatsen.
namespaceURIStringDe namespace‑URI van het element waarnaar u wilt verplaatsen.

ReturnValue

true if a matching descendant element is found; otherwise false. If a matching child element is not found, the XmlReader is positioned on the end tag (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the element. If the XmlReader is not positioned on an element when XmlReader::ReadToDescendant(String,String) was called, this method returns false and the position of the XmlReader is not changed.

Zie ook

XmlReader::ReadToDescendant(String) method

Verplaatst de XmlReader naar het volgende afstammings‑element met de opgegeven gekwalificeerde naam.

virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
ParameterTypeBeschrijving
nameStringDe gekwalificeerde naam van het element waarnaar u wilt verplaatsen.

ReturnValue

true if a matching descendant element is found; otherwise false. If a matching child element is not found, the XmlReader is positioned on the end tag (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the element. If the XmlReader is not positioned on an element when XmlReader::ReadToDescendant(String) was called, this method returns false and the position of the XmlReader is not changed.

Zie ook