Partager via


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

Return Value

Type: Microsoft.Office.Server.Search.WebControls.SharedQueryManager
The shared query manager.

See Also

Reference

SharedQueryManager Class

SharedQueryManager Members

GetInstance Overload

Microsoft.Office.Server.Search.WebControls Namespace