Interface ISearchExpression
A Search Expression can be populated with variables and providers. It can then be evaluated to yield a list of SearchItem
Inherited Members
Namespace: Unity.QuickSearch
Syntax
public interface ISearchExpression : ISearchList, ICollection<SearchItem>, IEnumerable<SearchItem>, IEnumerable, IDisposable
Methods
Evaluate()
Evaluate the SearchExpression.
Declaration
ISearchList Evaluate()
Returns
Type | Description |
---|---|
ISearchList | Returns the list of Items. |
SetProvider(String, SearchProvider)
Assign a concrete provider in a SearchExpression.
Declaration
ISearchExpression SetProvider(string name, SearchProvider provider)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the Provider |
SearchProvider | provider | Actual provider |
Returns
Type | Description |
---|---|
ISearchExpression |
SetValue(String, Object)
Set the value of a variable with a specific name.
Declaration
ISearchExpression SetValue(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the variable to assign to. |
Object | value | Value to bind to the variable. |
Returns
Type | Description |
---|---|
ISearchExpression |