Partilhar via


ISearchSiteAdministrationServiceApplication.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
<OperationContractAttribute> _
Function SetUserPreferenceSerializeHelper ( _
    userID As Byte(), _
    preference As UserPreferenceSerializeHelper _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim userID As Byte()
Dim preference As UserPreferenceSerializeHelper
Dim returnValue As Integer

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

Parameters

  • userID
    Type: []

    The user ID associated with the Search preference.

Return Value

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

Remarks

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

See Also

Reference

ISearchSiteAdministrationServiceApplication Interface

ISearchSiteAdministrationServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace