Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetQueryLoggingScript method (Page, String, String, Boolean, String)

QueryInfo.GetQueryLoggingScript method (Page, String, String, Boolean, String)

Builds and returns the query logging JavaScript for the query Web Part.

Namespace:  Microsoft.Office.Server.Search.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

public string GetQueryLoggingScript(
	Page page,
	string startAt,
	string id,
	bool isWireSRBLinksSuppressed,
	string regExpValue


Type: System.Web.UI.Page

The page where the query Web Part locates.

Type: System.String

The start result of the Search results.

Type: System.String

The ID of the query Web Part.

Type: System.Boolean

true to suppress JavaScript calls to wire the Search results base links if the results are delayed on asynchronous Web Parts; otherwise, false.

Type: System.String

The validating regular expression for the query Web Part.

Return value

Type: System.String
The query logging ECMAScript (JavaScript, JScript).

This method builds the JavaScript that is registered on the page for the query Web Part.

© 2015 Microsoft