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.
preference
Type: Microsoft.Office.Server.Search.Administration.UserPreferenceSerializeHelperThe user preference serialization helper for the specified user.
Return Value
Type: System.Int32
The database version of the user preference object.
Implements
Remarks
This method sets the user preference serialization helper for a specified user in the current SearchServiceApplication.
See Also
Reference
SearchServiceApplication Class