Skip to content

SearchResult

Julien Amsellem edited this page Dec 8, 2017 · 5 revisions

ISearchResult

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);
}

Properties

  • 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

<< Previous | Next >>

Clone this wiki locally