System::Xml::XmlElement::SetAttributeNode method
XmlElement::SetAttributeNode(SharedPtr<XmlAttribute>) method
يضيف XmlAttribute المحدد.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(SharedPtr<XmlAttribute> newAttr)
| Parameter | Type | الوصف |
|---|---|---|
| newAttr | SharedPtr<XmlAttribute> | العقدة XmlAttribute لإضافتها إلى مجموعة السمات لهذا العنصر. |
ReturnValue
إذا استبدلت السمة سمة موجودة بنفس الاسم، يتم إرجاع XmlAttribute القديمة؛ وإلا، يتم إرجاع nullptr.
انظر أيضًا
- Typedef SharedPtr
- Class XmlAttribute
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Page for C++
XmlElement::SetAttributeNode(String, String) method
يضيف XmlAttribute المحدد.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(String localName, String namespaceURI)
| Parameter | Type | الوصف |
|---|---|---|
| localName | String | الاسم المحلي للسمة. |
| namespaceURI | String | مسار مساحة الاسم للسمة. |
ReturnValue
الـ XmlAttribute للإضافة.
انظر أيضًا
- Typedef SharedPtr
- Class XmlAttribute
- Class String
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Page for C++