QueryInfo.GetQueryLoggingScript Method (Page, String, String, Boolean, String)
Builds and returns the query logging ECMAScript (JavaScript, JScript) for the query Web Part.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetQueryLoggingScript ( _
page As Page, _
startAt As String, _
id As String, _
isWireSRBLinksSuppressed As Boolean, _
regExpValue As String _
) As String
'Usage
Dim instance As QueryInfo
Dim page As Page
Dim startAt As String
Dim id As String
Dim isWireSRBLinksSuppressed As Boolean
Dim regExpValue As String
Dim returnValue As String
returnValue = instance.GetQueryLoggingScript(page, _
startAt, id, isWireSRBLinksSuppressed, _
regExpValue)
public string GetQueryLoggingScript(
Page page,
string startAt,
string id,
bool isWireSRBLinksSuppressed,
string regExpValue
)
Parameters
page
Type: System.Web.UI.PageThe page where the query Web Part locates.
startAt
Type: System.StringThe start result of the Search results.
id
Type: System.StringThe ID of the query Web Part.
isWireSRBLinksSuppressed
Type: System.Booleantrue to suppress ECMAScript (JavaScript, JScript) calls to wire the Search results base links if the results are delayed on asynchronous Web Parts; otherwise, false.
regExpValue
Type: System.StringThe validating regular expression for the query Web Part.
Return Value
Type: System.String
The query logging ECMAScript (JavaScript, JScript).
Remarks
This method builds the ECMAScript (JavaScript, JScript) that is registered on the page for the query Web Part.