UserPreference.SetUserPreference method

Stores the Search user preference information to the Search administration database.

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

Syntax

'Declaration
Public Shared Sub SetUserPreference ( _
    preference As UserPreference _
)
'Usage
Dim preference As UserPreferenceUserPreference.SetUserPreference(preference)
public static void SetUserPreference(
    UserPreference preference
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The context of the current HTTP request is null .

Remarks

This method calls the SetUserPreference(UserPreference, SPWeb) method to store the Search preference information.

See also

Reference

UserPreference class

UserPreference members

Microsoft.Office.Server.Search.Administration namespace