طريقة System::Xml::XmlReader::ReadToDescendant

XmlReader::ReadToDescendant(String, String) method

ينقل XmlReader إلى العنصر السليل التالي بالاسم المحلي ومعرف مساحة الاسم المحددين.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
معاملنوعالوصف
localNameStringالاسم المحلي للعنصر الذي ترغب في الانتقال إليه.
namespaceURIStringمعرف مساحة الاسم للعنصر الذي ترغب في الانتقال إليه.

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)
معاملنوعالوصف
nameStringالاسم المؤهل للعنصر الذي ترغب في الانتقال إليه.

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.

انظر أيضًا