NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlElement.RemoveAttributeNode (XmlAttribute)

Removes the specified XmlAttribute.

[Visual Basic]
Overloads Overridable Public Function RemoveAttributeNode( _
   ByVal oldAttr As XmlAttribute _
) As XmlAttribute
[C#]
public virtual XmlAttribute RemoveAttributeNode(
   XmlAttribute oldAttr
);
[C++]
public: virtual XmlAttribute* RemoveAttributeNode(
   XmlAttribute* oldAttr
);
[JScript]
public function RemoveAttributeNode(
   oldAttr : XmlAttribute
) : XmlAttribute;

Parameters

oldAttr
The XmlAttribute node to remove from the attribute collection for this element. If the removed attribute has a default value, it is immediately replaced.

Return Value

The removed XmlAttribute.

Exceptions

Exception Type Condition
NO_MODIFICATION_ALLOWED_ERR This node is read-only.
NOT_FOUND_ERR The oldAttr is not an attribute of the element.

See Also

XmlElement Class | XmlElement Members | System.NewXml Namespace | XmlElement.RemoveAttributeNode Overload List