QueryProperties.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
<DataMemberAttribute> _
Public Property QueryText As String
Get
Set
'Usage
Dim instance As QueryProperties
Dim value As String
value = instance.QueryText
instance.QueryText = value
[DataMemberAttribute]
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 Search SQL syntax. For the KeywordQuery class, use the Keyword syntax.