طريقة System::Xml::XmlElement::HasAttribute

XmlElement::HasAttribute(String, String) method

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

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

ReturnValue

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

انظر أيضًا

XmlElement::HasAttribute(String) method

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

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

ReturnValue

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

انظر أيضًا