共用方式為


QueryProperties.QueryText Property

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
Public Property QueryText As String
    Get
    Set
'Usage
Dim instance As QueryProperties
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 search SQL Syntax. For the KeywordQuery class, use the Keyword syntax.

See Also

Reference

QueryProperties Class

QueryProperties Members

Microsoft.SharePoint.Search.Query Namespace