다음을 통해 공유


SearchResults.GenerateQueryString Method

Generates the SQL Full-Text Search Syntax query that produces the current result set.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Protected Overrides Function GenerateQueryString ( _
    strKeyword As String, _
    rgScopeList As ArrayList, _
    strWhereAndPart As String, _
    <OutAttribute> ByRef strSavedQuery As String _
) As String
'Usage
Dim strKeyword As String
Dim rgScopeList As ArrayList
Dim strWhereAndPart As String
Dim strSavedQuery As String
Dim returnValue As String

returnValue = Me.GenerateQueryString(strKeyword, _
    rgScopeList, strWhereAndPart, strSavedQuery)
protected override string GenerateQueryString(
    string strKeyword,
    ArrayList rgScopeList,
    string strWhereAndPart,
    out string strSavedQuery
)

Parameters

  • strKeyword
    Type: System.String

    List of keywords specified for this query.

  • strWhereAndPart
    Type: System.String

    WHERE clause for the query.

  • strSavedQuery
    Type: System.String

    Out parameter that receives the return value from this method.

Return Value

Type: System.String
A string that contains the SQL Full-Text Search Syntax query that produces the current result set.

See Also

Reference

SearchResults Class

SearchResults Members

Microsoft.SharePoint.Portal.WebControls Namespace