Método HtmlTagInnerTextParser.GetInnerTextForHtmlTags (String, String, String, Boolean, Boolean, Boolean)
Retorna uma lista enumerável de todo o texto interno que coincide com os parâmetros especificados.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (em Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Sintaxe
'Declaração
Public Function GetInnerTextForHtmlTags ( _
tagName As String, _
attributeName As String, _
attributeValue As String, _
hasClosingTag As Boolean, _
removeInnerTags As Boolean, _
collapseWhiteSpace As Boolean _
) As IEnumerable(Of HtmlTagInnerText)
public IEnumerable<HtmlTagInnerText> GetInnerTextForHtmlTags(
string tagName,
string attributeName,
string attributeValue,
bool hasClosingTag,
bool removeInnerTags,
bool collapseWhiteSpace
)
public:
IEnumerable<HtmlTagInnerText^>^ GetInnerTextForHtmlTags(
String^ tagName,
String^ attributeName,
String^ attributeValue,
bool hasClosingTag,
bool removeInnerTags,
bool collapseWhiteSpace
)
member GetInnerTextForHtmlTags :
tagName:string *
attributeName:string *
attributeValue:string *
hasClosingTag:bool *
removeInnerTags:bool *
collapseWhiteSpace:bool -> IEnumerable<HtmlTagInnerText>
public function GetInnerTextForHtmlTags(
tagName : String,
attributeName : String,
attributeValue : String,
hasClosingTag : boolean,
removeInnerTags : boolean,
collapseWhiteSpace : boolean
) : IEnumerable<HtmlTagInnerText>
Parâmetros
tagName
Tipo: StringO nome da marca para procurar.
attributeName
Tipo: StringO nome do atributo para corresponder.
attributeValue
Tipo: StringO valor do atributo para corresponder.
hasClosingTag
Tipo: BooleanEspecifica se esta marca possui uma marca de fechamento.
removeInnerTags
Tipo: Booleantruepara filtrar as marcas HTML do texto interno; Caso contrário, false.
collapseWhiteSpace
Tipo: BooleantruePara recolher o espaço em branco extra no documento HTML. Caso contrário, false.
Valor de retorno
Tipo: IEnumerable<HtmlTagInnerText>
Uma lista enumerável do texto interno das marcas correspondentes.
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.