Partager via


SearchServiceApplication.HighlightStringValue - Méthode

Met en surbrillance toutes les occurrences des termes de requête donné au sein d'une chaîne particulière.

Espace de noms :  Microsoft.Office.Server.Search.Administration
Assembly :  Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)

Syntaxe

'Déclaration
Public Function HighlightStringValue ( _
    properties As QueryProperties, _
    strValue As String, _
    fLastTermByPrefix As Boolean _
) As HighlightedString
'Utilisation
Dim instance As SearchServiceApplication
Dim properties As QueryProperties
Dim strValue As String
Dim fLastTermByPrefix As Boolean
Dim returnValue As HighlightedString

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

Paramètres

  • strValue
    Type : System.String

    Chaîne à mettre en surbrillance.

  • fLastTermByPrefix
    Type : System.Boolean

    true si aucun jeton dans strValue établit une correspondance avec le préfixe du dernier jeton, la requête est mise en surbrillance ; dans le cas contraire, false.

Valeur renvoyée

Type : Microsoft.Office.Server.Search.Query.HighlightedString
La chaîne dans laquelle toutes les occurrences de la requête spécifiée termes sont mis en surbrillance.

Remarques

Cette méthode met en surbrillance toutes les occurrences des termes de requête spécifiée en mettant chaque terme ouvrir (< b >) et des balises de fermeture (< /b >).

Voir aussi

Référence

SearchServiceApplication classe

SearchServiceApplication - Membres

Microsoft.Office.Server.Search.Administration - Espace de noms