Partilhar via


RefinementManager.GetInstance Method (Page, QueryId)

Gets the instance of the refinement manager with the specified web page and 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 RefinementManager
'Usage
Dim CurrentPage As Page
Dim queryId As QueryId
Dim returnValue As RefinementManager

returnValue = RefinementManager.GetInstance(CurrentPage, _
    queryId)
public static RefinementManager GetInstance(
    Page CurrentPage,
    QueryId queryId
)

Parameters

  • CurrentPage
    Type: System.Web.UI.Page

    The web page on which the refinement manager resides.

Return Value

Type: Microsoft.Office.Server.Search.WebControls.RefinementManager
The instance of the refinement manager.

Remarks

This method retrieves the refinement manager instance from the page context if a cached copy already exists; otherwise, this method creates a new instance and stores it with the page context.

This method returns null if the CurrentPage is null .

See Also

Reference

RefinementManager Class

RefinementManager Members

GetInstance Overload

Microsoft.Office.Server.Search.WebControls Namespace