Class MBSearchResult<TItem>
The results of a search calling GetMatchingSelection. Both parameters must be set to enable the autocomplete to know if there is an overflow condition due to too many items being returned, an exact match or no items were found.
public class MBSearchResult<TItem>
Type Parameters
TItem
- Inheritance
-
MBSearchResult<TItem>
- Inherited Members
Constructors
MBSearchResult()
public MBSearchResult()
Properties
MatchingItemCount
The total number of matching items, irrespective of whether MatchingItems is populated.
public int MatchingItemCount { get; set; }
Property Value
MatchingItems
Returned list of select items. Can be empty either because no items matching search criteria were found, or because the item list is too long, signfied by setting the SearchResultType parameter to TooManyItemsFound.
public IEnumerable<MBSelectElement<TItem>> MatchingItems { get; set; }
Property Value
- IEnumerable<MBSelectElement<TItem>>
MaxItemCount
The maximum number of items that the query will return before setting SearchResultType to TooManyItemsFound.
public int MaxItemCount { get; set; }
Property Value
SearchResultType
Describes the contents of MatchingItems.
public MBSearchResultTypes SearchResultType { get; set; }