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.
preference
Type: Microsoft.Office.Server.Search.Administration.UserPreferenceSerializeHelperThe user preference serialization helper for the specified user.
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