طريقة 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)
معاملنوعالوصف
الاسم المحليStringالسلسلة لمطابقتها مع قيمة 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)
معاملنوعالوصف
nameStringالسلسلة المتطابقة مع قيمة 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.

انظر أيضًا