SearchServiceApplication.ClearUserClickHistory method
Clears the history of recorded clicks for the given user.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function ClearUserClickHistory ( _
tenantId As Guid, _
userID As Byte(), _
strUserName As String, _
preference As UserPreferenceSerializeHelper _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim tenantId As Guid
Dim userID As Byte()
Dim strUserName As String
Dim preference As UserPreferenceSerializeHelper
Dim returnValue As Integer
returnValue = instance.ClearUserClickHistory(tenantId, _
userID, strUserName, preference)
public int ClearUserClickHistory(
Guid tenantId,
byte[] userID,
string strUserName,
UserPreferenceSerializeHelper preference
)
Parameters
tenantId
Type: System.GuidThe ID of the tenant that the user belongs to.
userID
Type: []An array of bites containing the user’s ID.
strUserName
Type: System.StringThe user name.
preference
Type: Microsoft.Office.Server.Search.Administration.UserPreferenceSerializeHelperThe search preferences associated with the user.
Return value
Type: System.Int32
Represents the version of the database where the click history is stored.
Implements
See also
Reference
SearchServiceApplication class