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)
Syntax
'Declaration
Public Property QueryText As String
Get
Set
'Usage
Dim instance As Query
Dim value As String
value = instance.QueryText
instance.QueryText = value
public string QueryText { get; set; }
Property Value
Type: System.String
A string containing the query text.
Remarks
When setting the QueryText property for the FullTextSqlQuery class, you must use the SQL query syntax. For the KeywordQuery class, use the keyword syntax.
For FAST Search Server 2010 for SharePoint you can also specify the query in the FAST Query Language (FQL) syntax.
See Also
Reference
Microsoft.Office.Server.Search.Query Namespace
Other Resources
SharePoint Search SQL Syntax Reference