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