Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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