HtmlTagInnerTextParser.GetInnerTextForHtmlTags Method (String, Boolean, Boolean, Boolean)
Returns an enumerable list of all the inner text that matches the specified parameters.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Function GetInnerTextForHtmlTags ( _
tagName As String, _
hasClosingTag As Boolean, _
removeInnerTags As Boolean, _
collapseWhiteSpace As Boolean _
) As IEnumerable(Of HtmlTagInnerText)
public IEnumerable<HtmlTagInnerText> GetInnerTextForHtmlTags(
string tagName,
bool hasClosingTag,
bool removeInnerTags,
bool collapseWhiteSpace
)
public:
IEnumerable<HtmlTagInnerText^>^ GetInnerTextForHtmlTags(
String^ tagName,
bool hasClosingTag,
bool removeInnerTags,
bool collapseWhiteSpace
)
member GetInnerTextForHtmlTags :
tagName:string *
hasClosingTag:bool *
removeInnerTags:bool *
collapseWhiteSpace:bool -> IEnumerable<HtmlTagInnerText>
public function GetInnerTextForHtmlTags(
tagName : String,
hasClosingTag : boolean,
removeInnerTags : boolean,
collapseWhiteSpace : boolean
) : IEnumerable<HtmlTagInnerText>
Parameters
tagName
Type: StringThe name of the tag to search for.
hasClosingTag
Type: BooleanSpecifies whether this tag has a closing tag.
removeInnerTags
Type: Booleantrue to filter out HTML tags from the inner text; otherwise, false.
collapseWhiteSpace
Type: Booleantrue to collapse the extra white space in the HTML document; otherwise, false.
Return Value
Type: IEnumerable<HtmlTagInnerText>
An enumerable list of the inner text of the matching tags.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.