System::Xml::XmlElement::SetAttributeNode メソッド

XmlElement::SetAttributeNode(SharedPtr<XmlAttribute>) method

指定された XmlAttribute を追加します。

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(SharedPtr<XmlAttribute> newAttr)
パラメーター説明
newAttrSharedPtr<XmlAttribute>この要素の属性コレクションに追加するための XmlAttribute ノードです。

ReturnValue

属性が同名の既存属性を置き換える場合、古い XmlAttribute が返されます。置き換えない場合は nullptr が返されます。

参照

XmlElement::SetAttributeNode(String, String) method

指定された XmlAttribute を追加します。

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(String localName, String namespaceURI)
パラメーター説明
localNameString属性のローカル名。
namespaceURIString属性の名前空間 URI。

ReturnValue

追加する XmlAttribute です。

参照