Share via


UserPreference.GetUserPreference Method

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.

See Also

Reference

UserPreference Class

UserPreference Members

GetUserPreference Overload

Microsoft.Office.Server.Search.Administration Namespace