Bean Software Search Control Documentation   
 
 
     




TypeOfSearch Property


Description:
Represents how search control will understand search string. It could search for any word, all words, exact phrase or boolean expression.

[Visual Basic .NET]

Public Property TypeOfSearch() As enuTypeOfSearch


[C#]

public enuTypeOfSearch TypeOfSearch() {get; set;}

Data type: enuTypeOfSearch

Default value: enuTypeOfSearch.AllWords

Example: If Text property is set to "apple or banana" and TypeOfSearch is set to enuTypeOfSearch.ExactPhrase, then SQL Query will return only rows that contains a phrase "apple or banana". If TypeOfSearch value changes to enuTypeOfSearch.Expression, SQL Query will return rows that contains a word "apple" or word "banana".