Share via


IixssoQuery::QueryToURL method

[Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.]

Reads the properties of the query object and creates and creates the QueryString portion of a uniform resource locator (URL) string from their values.

Syntax

HRESULT QueryToURL(
  [out, retval] BSTR *ppwszQuery
);

Parameters

ppwszQuery [out, retval]

The Common Gateway Interface (CGI) QueryString, which uses certain combinations of character escape sequences for unprintable characters to be used in a URL (for example, "Now" would be %22Now%22).

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Properties read from the query object include Catalog, SortBy, GroupBy, Query, MaxRecords, and AllowEnumeration.

Examples

' Take the current property settings on the query object for
'   Q.Query = "Change Notification"
'   Q.SortBy = "rank[d]"
'   Q.Dialect = "1"
'   create an URL version
Dim strURL As String
strURL = Q.QueryToURL( )
Debug.Print "URL Version = " + strURL
' Output is:
'   URL Version = di=1&so=Rank%5Bd%%5D&qu=Change+Notification

Requirements

Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
End of client support
Windows 7
End of server support
Windows Server 2008 R2
DLL
Ixsso.dll

See also

IixssoQuery