Sets the value of the attribute with the specified name.
[Visual Basic] Overloads Overridable Public Sub SetAttribute( _ ByVal name As String, _ ByVal value As String _ ) [C#] public virtual void SetAttribute( string name, string value ); [C++] public: virtual void SetAttribute( String* name, String* value ); [JScript] public function SetAttribute( name : String, value : String );
Exception Type | Condition |
---|---|
INVALID_CHARACTER_ERR | The specified name contains an invalid character. |
NO_MODIFICATION_ALLOWED_ERR | The node is read-only. |
XmlElement Class | XmlElement Members | System.NewXml Namespace | XmlElement.SetAttribute Overload List