System::Xml::XmlReader::ReadToDescendant μέθοδος

XmlReader::ReadToDescendant(String, String) method

Προχωρά το XmlReader στο επόμενο στοιχείο απογόνου με το καθορισμένο τοπικό όνομα και το URI ονοματοχώρου.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
ParameterTypeΠεριγραφή
localNameStringΤο τοπικό όνομα του στοιχείου στο οποίο θέλετε να μεταβείτε.
namespaceURIStringΤο URI ονοματοχώρου του στοιχείου στο οποίο θέλετε να μεταβείτε.

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.

Δείτε επίσης

XmlReader::ReadToDescendant(String) method

Προχωρά το XmlReader στο επόμενο στοιχείο απογόνου με το καθορισμένο πλήρες όνομα.

virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
ParameterTypeΠεριγραφή
όνομαStringΤο πλήρες όνομα του στοιχείου στο οποίο θέλετε να μεταβείτε.

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.

Δείτε επίσης