FindMyFiles
FindMyFiles.Engine
ISearchResult Interface
Materialized, sort-ordered result; pages are O(1) reads.
public interface ISearchResult : System.IDisposable
Implements System.IDisposable
Properties
ISearchResult.Count Property
The settled total match count (the upper bound on rows obtainable via GetRangeAsync(long, int, CancellationToken)). This determines the virtualized list's scroll range.
long Count { get; }
Property Value
Methods
ISearchResult.GetRangeAsync(long, int, CancellationToken) Method
Fetches up to count rows from offset in the result (page read of the visible window).
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<FindMyFiles.Engine.RowData>> GetRangeAsync(long offset, int count, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
Parameters
offset System.Int64
0-based row offset from the start.
count System.Int32
Maximum number of rows to fetch.
ct System.Threading.CancellationToken
Cooperative cancellation token.
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<RowData>>
The RowData for the requested range (may be fewer
than count near the end).
Exceptions
StaleResultException
The index was structurally rebuilt — re-run the query.