Share via


SearchServiceApplication.SetUserPreferenceSerializeHelper Method

Sets the user preference serialization helper for a specified user.

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

Syntax

'Declaration
Public Function SetUserPreferenceSerializeHelper ( _
    userID As Byte(), _
    preference As UserPreferenceSerializeHelper _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim userID As Byte()
Dim preference As UserPreferenceSerializeHelper
Dim returnValue As Integer

returnValue = instance.SetUserPreferenceSerializeHelper(userID, _
    preference)
public int SetUserPreferenceSerializeHelper(
    byte[] userID,
    UserPreferenceSerializeHelper preference
)

Parameters

  • userID
    Type: []

    The user ID associated with the Search preference.

Return Value

Type: System.Int32
The database version of the user preference object.

Implements

ISearchSiteAdministrationServiceApplication.SetUserPreferenceSerializeHelper([], UserPreferenceSerializeHelper)

Remarks

This method sets the user preference serialization helper for a specified user in the current SearchServiceApplication.

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace