Méthode System::Xml::XmlElement::SetAttributeNode
Contenu
[
Cacher
]XmlElement::SetAttributeNode(SharedPtr<XmlAttribute>) method
Ajoute le XmlAttribute spécifié.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(SharedPtr<XmlAttribute> newAttr)
| Paramètre | Type | Description |
|---|---|---|
| newAttr | SharedPtr<XmlAttribute> | Le nœud XmlAttribute à ajouter à la collection d’attributs de cet élément. |
ReturnValue
Si l’attribut remplace un attribut existant portant le même nom, l’ancien XmlAttribute est retourné ; sinon, nullptr est retourné.
Voir aussi
- Typedef SharedPtr
- Class XmlAttribute
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Font for C++
XmlElement::SetAttributeNode(String, String) method
Ajoute le XmlAttribute spécifié.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(String localName, String namespaceURI)
| Paramètre | Type | Description |
|---|---|---|
| localName | String | Le nom local de l’attribut. |
| namespaceURI | String | L’URI d’espace de noms de l’attribut. |
ReturnValue
Le XmlAttribute à ajouter.
Voir aussi
- Typedef SharedPtr
- Class XmlAttribute
- Class String
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Font for C++