System::Xml::XmlElement::SetAttributeNode metodo
Contenuti
[
Nascondere
]XmlElement::SetAttributeNode(SharedPtr<XmlAttribute>) method
Aggiunge l’XmlAttribute specificato.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(SharedPtr<XmlAttribute> newAttr)
| Parametro | Tipo | Descrizione |
|---|---|---|
| newAttr | SharedPtr<XmlAttribute> | Il nodo XmlAttribute da aggiungere alla raccolta di attributi per questo elemento. |
ReturnValue
Se l’attributo sostituisce un attributo esistente con lo stesso nome, viene restituito il vecchio XmlAttribute; altrimenti, viene restituito nullptr.
Vedi anche
- Typedef SharedPtr
- Class XmlAttribute
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Font for C++
XmlElement::SetAttributeNode(String, String) method
Aggiunge l’XmlAttribute specificato.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(String localName, String namespaceURI)
| Parametro | Tipo | Descrizione |
|---|---|---|
| localName | Stringa | Il nome locale dell’attributo. |
| namespaceURI | Stringa | L’URI dello spazio dei nomi dell’attributo. |
ReturnValue
L’XmlAttribute da aggiungere.
Vedi anche
- Typedef SharedPtr
- Class XmlAttribute
- Class String
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Font for C++