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.
Retrieves the Search user preference information.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Shared Function GetUserPreference As UserPreference
'Usage
Dim returnValue As UserPreference
returnValue = UserPreference.GetUserPreference()
public static UserPreference GetUserPreference()
Return Value
Type: Microsoft.Office.Server.Search.Administration.UserPreference
The Search user preference information.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The context of the current HTTP request is null . |
Remarks
This method calls the GetUserPreference(Boolean, SPWeb) method with the first parameter set to true to retrieve the Search user preference information.