Share via


HtmlDocument.GetFilteredHtmlTags Method

Parses HtmlDocument and returns an iterator with all the HTML tags found that match the tags that are contained in the tagFilter array.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Function GetFilteredHtmlTags ( _
    ParamArray tagFilter As String() _
) As IEnumerable(Of HtmlTag)
public IEnumerable<HtmlTag> GetFilteredHtmlTags(
    params string[] tagFilter
)
public:
IEnumerable<HtmlTag^>^ GetFilteredHtmlTags(
    ... array<String^>^ tagFilter
)
member GetFilteredHtmlTags : 
        tagFilter:string[] -> IEnumerable<HtmlTag> 
public function GetFilteredHtmlTags(
    ... tagFilter : String[]
) : IEnumerable<HtmlTag>

Parameters

  • tagFilter
    Type: array<String[]

    An array that contains HTML tags to be used as a filter for the HtmlDocument.

Return Value

Type: IEnumerable<HtmlTag>
A IEnumerable object.

.NET Framework Security

See Also

Reference

HtmlDocument Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace