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

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
);

Parameters

name
The name of the attribute. The name can include the prefix or leave it off.
value
[To be supplied.]

Exceptions

Exception Type Condition
INVALID_CHARACTER_ERR The specified name contains an invalid character.
NO_MODIFICATION_ALLOWED_ERR The node is read-only.

See Also

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