SharedQueryManager.GetInstance Method (Page, QueryId)
Returns the shared query manager instance for the current Web page and the specified query identifier (ID).
Namespace: Microsoft.Office.Server.Search.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Shared Function GetInstance ( _
CurrentPage As Page, _
queryId As QueryId _
) As SharedQueryManager
'Usage
Dim CurrentPage As Page
Dim queryId As QueryId
Dim returnValue As SharedQueryManager
returnValue = SharedQueryManager.GetInstance(CurrentPage, _
queryId)
public static SharedQueryManager GetInstance(
Page CurrentPage,
QueryId queryId
)
Parameters
CurrentPage
Type: System.Web.UI.PageThe current Web page.
queryId
Type: Microsoft.Office.Server.Search.WebControls.QueryIdThe query ID.
Return Value
Type: Microsoft.Office.Server.Search.WebControls.SharedQueryManager
The shared query manager.