RefinementManager.AddDataToRefinement Method (String, String, String, Int64, Single)
Adds a property value to the refinement data for calculating the refinement filters.
Namespace: Microsoft.Office.Server.Search.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub AddDataToRefinement ( _
ColName As String, _
FilterToken As String, _
FilterDisplayValue As String, _
FilterCount As Long, _
FilterPercentage As Single _
)
'Usage
Dim instance As RefinementManager
Dim ColName As String
Dim FilterToken As String
Dim FilterDisplayValue As String
Dim FilterCount As Long
Dim FilterPercentage As Single
instance.AddDataToRefinement(ColName, _
FilterToken, FilterDisplayValue, _
FilterCount, FilterPercentage)
public void AddDataToRefinement(
string ColName,
string FilterToken,
string FilterDisplayValue,
long FilterCount,
float FilterPercentage
)
Parameters
ColName
Type: System.StringThe name of the property.
FilterToken
Type: System.StringThe token of the refinement filter.
FilterDisplayValue
Type: System.StringThe value of the property.
FilterCount
Type: System.Int64The number of the results for the refinement filter.
FilterPercentage
Type: System.SingleThe percentage of the results for the refinement filter.
Remarks
This method creates a refinement data element and adds the element to the refinement data if the refinement data does not contains an element with the specified filter token as a key; otherwise, this method increases the filter count of the refinement data element by the value represented by the FilterCount parameter.