-
Notifications
You must be signed in to change notification settings - Fork 29
SearchResult
Julien Amsellem edited this page Dec 8, 2017
·
5 revisions
When you have build a queryable you get access to the results by enumerating it. This is because a IQueryable is an IEnumerable<ISearchResult>:
IEverything everything = new Everything();
IEnumerable<ISearchResult> results = everything
.Search()
.Name
.Extension(".cs");
foreach(ISearchResult result in results)
{
Console.WriteLine(result.FileName);
}-
Index: index of the search result -
IsFile: tells if the result is a file or a folder -
FullPath: result full path inclue file name and extension (if file) -
Path: result path -
FileName: result file name or folder name -
Size: result size in bits -
Attributes: flags describing the result properties -
Created: result creation date -
Modified: result last modification date -
Accessed: result last access date -
Executed: result last execution date