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.
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
preference
Type: Microsoft.Office.Server.Search.Administration.UserPreferenceThe Search preference to store.
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.