Query property, each call to the web
service requests a number of entries identified by Count, starting at the position in the result set
identified by the SourceRequest.Offset parameter. We use these parameters to calculate a
sliding window that pages through the search results with the page size equaling SourceRequest.
Count, or less if it is the last page. So, based on the SourceRequest.Offset and SourceRequest.
Count, we can calculate the start index and end index for the sliding window of search results
displayed by the server control.
Table 12-1. Properties Available for the SourceRequest Object
Parameter Type Description
Count Integer Specifies the number of results to return
Offset Integer Specifies the offset from the starting point of the search
that should be returned
Source Enum Object representing one or more sources listed in the
SourceType enumeration
SearchTagFilters string[] Restricts the list of search tags returned by a query without
otherwise affecting the results of the search
FileType String Specifies the type of files (.doc, .pdf, etc.) returned for a
search
SortBy Enum Specifies the sort order of results returned from a PhoneBook
SourceType search
ResultFields Enum Specifies the results fields returned in the result set based on
the ResultFieldMask enumeration
582 CHAPTER 12 ?– B U ILDING A COMPLEX CONTROL
Figure 12-2.
Pages:
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763