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.ScriptObjectCollectionA collection of references to HTML elements that correspond to the requested tag name.
| Exception | Condition |
|---|---|
| ArgumentException |
tagName is an empty string. |
| ArgumentNullException |
tagName is null. |
| InvalidOperationException |
An unexpected error occurred. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.