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

XmlElement::RemoveAttribute(String, String) method

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

virtual void System::Xml::XmlElement::RemoveAttribute(String localName, String namespaceURI)
ParameterType描述
localName字符串要删除的属性的本地名称。
namespaceURI字符串要删除的属性的命名空间 URI。

另见

XmlElement::RemoveAttribute(String) method

按名称移除属性。

virtual void System::Xml::XmlElement::RemoveAttribute(String name)
ParameterType描述
name字符串要删除的属性的名称。这是一个限定名称。它会与匹配节点的 get_Name 值进行匹配。

另见