System::Xml::XmlReader::ReadToDescendant‑metod

XmlReader::ReadToDescendant(String, String) method

Flyttar XmlReader till nästa ättlingselement med det angivna lokala namnet och namnrymds‑URI:n.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
ParameterTypBeskrivning
localNameStringDet lokala namnet på det element du vill flytta till.
namespaceURIStringNamnrums‑URI:n för det element du vill flytta till.

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.

Se även

XmlReader::ReadToDescendant(String) method

Flyttar XmlReader till nästa ättlingselement med det angivna kvalificerade namnet.

virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
ParameterTypBeskrivning
namnStringDet kvalificerade namnet på det element du vill flytta till.

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.

Se även