SetAttributeNodeNS

Element.SetAttributeNodeNS method

添加一个新属性。如果元素中已存在具有该本地名称和该名称空间 URI 的属性,则将其替换为新属性。

public Attr SetAttributeNodeNS(Attr newAttr)
范围类型描述
newAttrAttr新的属性。

返回值

返回属性

也可以看看