HtmlDocument.GetElementsByTagName Method

Silverlight

Gets a collection of browser elements.

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

'Declaration
<SecuritySafeCriticalAttribute> _
Public Function GetElementsByTagName ( _
	tagName As String _
) As ScriptObjectCollection

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 Nothing.

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: