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.BooleanWhether to look up from cache first or go directly to db
- context
Type: Microsoft.SharePoint.SPContext
Return value
Type: Microsoft.Office.Server.Search.Administration.UserPreference
The UserPreference object