SearchServiceApplicationProxy.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 SearchServiceApplicationProxy
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 ID of the User.
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
Exceptions
Exception | Condition |
---|---|
Exception | An error occurred during application execution. |
Remarks
This method sets the user preference serialization helper for the specified user in the current SearchServiceApplicationProxy.
See Also
Reference
SearchServiceApplicationProxy Class