UserPreference.GetUserPreference method (Boolean, SPContext)

Get the UserPreference from databse

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

Syntax

'Declaration
Public Shared Function GetUserPreference ( _
    lookupFromCache As Boolean, _
    context As SPContext _
) As UserPreference
'Usage
Dim lookupFromCache As Boolean
Dim context As SPContext
Dim returnValue As UserPreference

returnValue = UserPreference.GetUserPreference(lookupFromCache, _
    context)
public static UserPreference GetUserPreference(
    bool lookupFromCache,
    SPContext context
)

Parameters

  • lookupFromCache
    Type: System.Boolean

    Whether to look up from cache first or go directly to db

Return value

Type: Microsoft.Office.Server.Search.Administration.UserPreference
The UserPreference object

See also

Reference

UserPreference class

UserPreference members

GetUserPreference overload

Microsoft.Office.Server.Search.Administration namespace