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

XmlReader::IsStartElement() method

تستدعي XmlReader::MoveToContent وتختبر ما إذا كانت عقدة المحتوى الحالية علامة بداية أو علامة عنصر فارغ.

virtual bool System::Xml::XmlReader::IsStartElement()

ReturnValue

true if XmlReader::MoveToContent finds a start tag or empty element tag; false if a node type other than XmlNodeType::Element was found.

انظر أيضًا

XmlReader::IsStartElement(String, String) method

تستدعي XmlReader::MoveToContent وتختبر ما إذا كانت عقدة المحتوى الحالية علامة بداية أو علامة عنصر فارغ وما إذا كانت قيمتي XmlReader::get_LocalName وXmlReader::get_NamespaceURI للعنصر المكتشف تطابق السلاسل المعطاة.

virtual bool System::Xml::XmlReader::IsStartElement(String localname, String ns)
ParameterTypeالوصف
localnameStringالسلسلة للمطابقة مع قيمة LocalName للعنصر المكتشف.
nsStringالسلسلة للمطابقة مع قيمة NamespaceURI للعنصر المكتشف.

ReturnValue

true if the resulting node is an element. false if a node type other than XmlNodeType::Element was found or if the LocalName and NamespaceURI values of the element do not match the specified strings.

انظر أيضًا

XmlReader::IsStartElement(String) method

تستدعي XmlReader::MoveToContent وتختبر ما إذا كانت عقدة المحتوى الحالية علامة بداية أو علامة عنصر فارغ وما إذا كانت قيمة XmlReader::get_Name للعنصر المكتشف تطابق الوسيط المعطى.

virtual bool System::Xml::XmlReader::IsStartElement(String name)
ParameterTypeالوصف
الاسمStringالسلسلة المطابقة مع قيمة Name للعنصر المكتشف.

ReturnValue

true if the resulting node is an element and the Name value matches the specified string. false if a node type other than XmlNodeType::Element was found or if the element Name value does not match the specified string.

انظر أيضًا