Export (0) Print
Expand All

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)

public void SetAttribute(
	string name,
	string value
)

Parameters

name
Type: System.String
The attribute whose value will be set.
value
Type: System.String
The attribute's new value.

ExceptionCondition
ArgumentException

name is an empty string.

ArgumentNullException

name is null.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft