Export (0) Print
Expand All

HtmlDocument.GetElementsByTagName Method

Silverlight

Gets a collection of browser elements.

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

[SecuritySafeCriticalAttribute]
public ScriptObjectCollection GetElementsByTagName(
	string tagName
)

Parameters

tagName
Type: System.String
A browser element's tag name.

Return Value

Type: System.Windows.Browser.ScriptObjectCollection
A collection of references to HTML elements that correspond to the requested tag name.

ExceptionCondition
ArgumentException

tagName is an empty string.

ArgumentNullException

tagName is null.

InvalidOperationException

An unexpected error occurred.

If no elements that correspond to the requested tag name are found, an empty collection is returned.

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