Element.SetAttributeNodeNS

Element.SetAttributeNodeNS method

添加新属性。如果具有该本地名称和该命名空间 URI 的属性已存在于元素中,则它会被新的替换。

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

返回值

返回属性

也可以看看