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

XmlElement::SetAttributeNode(SharedPtr<XmlAttribute>) method

يضيف XmlAttribute المحدد.

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(SharedPtr<XmlAttribute> newAttr)
معاملنوعالوصف
newAttrSharedPtr<XmlAttribute>العقدة XmlAttribute لإضافتها إلى مجموعة السمات لهذا العنصر.

ReturnValue

إذا استبدلت السمة سمة موجودة بنفس الاسم، تُرجع XmlAttribute القديمة؛ وإلا، تُرجع nullptr.

انظر أيضًا

XmlElement::SetAttributeNode(String, String) method

يضيف XmlAttribute المحدد.

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(String localName, String namespaceURI)
معاملنوعالوصف
localNameStringالاسم المحلي للخاصية.
namespaceURIStringمسار URI للمساحة الاسمية للخاصية.

ReturnValue

الـ XmlAttribute للإضافة.

انظر أيضًا