HtmlElement.SetAttribute Method
Silverlight
Sets the value of an attribute on the current HTML element.
Namespace: System.Windows.Browser
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
Parameters
- name
- Type: System.String
The attribute whose value will be set.
- value
- Type: System.String
The attribute's new value.
| Exception | Condition |
|---|---|
| ArgumentException | name is an empty string. |
| ArgumentNullException | name is null. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.