Query.QueryText property

NOTE: This API is now obsolete.

Gets or sets the text for the search query.

Namespace:  Microsoft.SharePoint.Search.Query
Assembly:  Microsoft.SharePoint.Search (in Microsoft.SharePoint.Search.dll)

Syntax

'Declaration
<ObsoleteAttribute("This class is obsolete.")> _
Public Property QueryText As String
    Get
    Set
'Usage
Dim instance As Query
Dim value As String

value = instance.QueryText

instance.QueryText = value
[ObsoleteAttribute("This class is obsolete.")]
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 SearchSQL syntax. For the KeywordQuery class, use the SearchKeyword syntax.

See also

Reference

Query class

Query members

Microsoft.SharePoint.Search.Query namespace