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.Page 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.Page for C++