Share via


RefinementManager.AddDataToRefinement Method (String, String, Type)

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, _
    FilterDisplayValue As String, _
    colType As Type _
)
'Usage
Dim instance As RefinementManager
Dim ColName As String
Dim FilterDisplayValue As String
Dim colType As Type

instance.AddDataToRefinement(ColName, _
    FilterDisplayValue, colType)
public void AddDataToRefinement(
    string ColName,
    string FilterDisplayValue,
    Type colType
)

Parameters

  • FilterDisplayValue
    Type: System.String

    The value of the property.

  • colType
    Type: System.Type

    The data type of the property.

Remarks

This method gets the filter token from the FilterDisplayValue parameter based on the culture and the property data type, and then adds the value of the specified property to the refinement data with this filter token as its key.

See Also

Reference

RefinementManager Class

RefinementManager Members

AddDataToRefinement Overload

Microsoft.Office.Server.Search.WebControls Namespace