System::Xml::XmlReader::ReadToDescendant méthode

XmlReader::ReadToDescendant(String, String) method

Avance le XmlReader vers l’élément descendant suivant avec le nom local et l’URI d’espace de noms spécifiés.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
ParamètreTypeDescription
localNameStringLe nom local de l’élément vers lequel vous souhaitez vous déplacer.
namespaceURIStringL’URI d’espace de noms de l’élément vers lequel vous souhaitez vous déplacer.

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.

Voir aussi

XmlReader::ReadToDescendant(String) method

Avance le XmlReader vers l’élément descendant suivant avec le nom qualifié spécifié.

virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
ParamètreTypeDescription
nomStringLe nom qualifié de l’élément vers lequel vous souhaitez vous déplacer.

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.

Voir aussi