Compartilhar via


SearchServiceApplicationProxy.HighlightStringValueQuerySuggestions method

Realça todas as ocorrências dos termos da consulta especificada em um valor de seqüência de caracteres especificada.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaração
Public Function HighlightStringValueQuerySuggestions ( _
    properties As QueryProperties, _
    strValue As String, _
    fLastTermByPrefix As Boolean _
) As HighlightedString
'Uso
Dim instance As SearchServiceApplicationProxy
Dim properties As QueryProperties
Dim strValue As String
Dim fLastTermByPrefix As Boolean
Dim returnValue As HighlightedString

returnValue = instance.HighlightStringValueQuerySuggestions(properties, _
    strValue, fLastTermByPrefix)
public HighlightedString HighlightStringValueQuerySuggestions(
    QueryProperties properties,
    string strValue,
    bool fLastTermByPrefix
)

Parâmetros

  • strValue
    Type: System.String

    O valor da seqüência de caracteres a ser realçado.

  • fLastTermByPrefix
    Type: System.Boolean

    true para indicar que nenhum token no parâmetro strValue que corresponde ao prefixo do último token na consulta será realçado; Caso contrário, false.

Valor retornado

Type: Microsoft.Office.Server.Search.Query.HighlightedString
O valor no quais todas as ocorrências da consulta especificada termos são realçados.

Exceptions

Exception Condition
Exception

Ocorreu um erro durante a execução do aplicativo.

Comentários

Este método realça todas as ocorrências dos termos da consulta especificada, colocando cada termo entre marcas de (</b>) (<b>) de abertura e fechamento.

Ver também

Referência

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace