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 (String, String)

Removes the XmlAttribute specified by LocalName and NamespaceURI.

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

Parameters

localName
LocalName of the attribute.
namespaceURI
NamespaceURI of the attribute.

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