Partager via


Query.QueryText, propriété (Microsoft.SharePoint.Search.Query)

Gets or sets the text for the search query.

Espace de noms : Microsoft.SharePoint.Search.Query
Assembly : Microsoft.SharePoint.Search (dans microsoft.sharepoint.search.dll)

Syntaxe

'Déclaration
Public Property QueryText As String
'Utilisation
Dim instance As Query
Dim value As String

value = instance.QueryText

instance.QueryText = value
public string QueryText { get; set; }

Valeur de la propriété

A string containing the query text.

Notes

When setting the QueryText property for the FullTextSqlQuery class, you must use the RechercherSyntaxe SQL du service Recherche Windows SharePoint Services. For the KeywordQuery class, use the RechercherSyntaxe de mots clés pour le service Recherche Windows SharePoint Services.

Voir aussi

Référence

Query, classe
Membres Query
Microsoft.SharePoint.Search.Query, espace de noms