System::Xml::XmlElement::HasAttribute method

XmlElement::HasAttribute(String, String) method

يحدد ما إذا كانت العقدة الحالية تحتوي على سمة بالاسم المحلي المحدد وURI مساحة الاسم.

virtual bool System::Xml::XmlElement::HasAttribute(String localName, String namespaceURI)
ParameterTypeالوصف
localNameStringالاسم المحلي للخاصية للبحث عنها.
namespaceURIStringمعرف URI للمساحة الاسمية للخاصية للبحث عنها.

ReturnValue

true if the current node has the specified attribute; otherwise, false.

انظر أيضًا

XmlElement::HasAttribute(String) method

يحدد ما إذا كانت العقدة الحالية تحتوي على سمة بالاسم المحدد.

virtual bool System::Xml::XmlElement::HasAttribute(String name)
ParameterTypeالوصف
الاسمStringاسم الخاصية للبحث عنها. هذا اسم مؤهل. يتم مطابقته مع قيمة get_Name للعقدة المطابقة.

ReturnValue

true if the current node has the specified attribute; otherwise, false.

انظر أيضًا