Export (0) Print
Expand All
Expand Minimize

Query.QueryText property

Gets or sets the text for the search query.

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

public string QueryText { get; set; }

Property value

Type: System.String
A string containing the query text.

When setting the QueryText property for the KeywordQuery class, use Keyword Query Language (KQL).

Show:
© 2014 Microsoft