Export (0) Print
Expand All

HtmlElement.Id Property

Silverlight

Gets the identifier of the current HTML element.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

public string Id { get; set; }

Property Value

Type: System.String
An HTML element ID string if the current element has an identifier; otherwise, an empty string.

ExceptionCondition
ArgumentException

The property is set to an empty string.

ArgumentNullException

The property is set to 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