System::Xml::XmlElement::RemoveAttribute 方法

XmlElement::RemoveAttribute(String, String) method

移除具有指定本地名称和命名空间 URI 的属性。(如果被移除的属性有默认值,则会立即替换)。

virtual void System::Xml::XmlElement::RemoveAttribute(String localName, String namespaceURI)
参数类型描述
localNameString要移除的属性的本地名称。
namespaceURIString要移除的属性的命名空间 URI。

另见

XmlElement::RemoveAttribute(String) method

按名称移除属性。

virtual void System::Xml::XmlElement::RemoveAttribute(String name)
参数类型描述
名称String要移除的属性的名称。这是一个限定名称。它会与匹配节点的 get_Name 值进行匹配。

另见