XmlElement.SetAttributeNode(XmlAttribute) 方法

定義

設定或更新這個專案上提供的屬性節點。

public:
 virtual XmlAttribute ^ SetAttributeNode(XmlAttribute ^ newAttribute) = SetAttributeNode;
XmlAttribute SetAttributeNode(XmlAttribute const& newAttribute);
public XmlAttribute SetAttributeNode(XmlAttribute newAttribute);
function setAttributeNode(newAttribute)
Public Function SetAttributeNode (newAttribute As XmlAttribute) As XmlAttribute

參數

newAttribute
XmlAttribute

新屬性的指標。

傳回

如果有任何具有相同名稱的) ,則傳回上一個屬性的指標 (。

適用於