Partager via


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.

See Also

Reference

QueryProperties Class

QueryProperties Members

Microsoft.Office.Server.Search.Query Namespace