System::Xml::XmlReader::ReadToDescendant metod

XmlReader::ReadToDescendant(String, String) method

Flyttar XmlReader till nästa efterföljande element med det angivna lokala namnet och namnrymds-URI:n.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
ParameterTypeBeskrivning
localNameStringDet lokala namnet på elementet du vill flytta till.
namespaceURIStringNamnområdets URI för elementet 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 efterföljande element med det angivna kvalificerade namnet.

virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
ParameterTypeBeskrivning
namnStringDet kvalificerade namnet på elementet 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