Skip to content
Julien Amsellem edited this page Sep 27, 2017 · 1 revision

IQuery

EverythingNet has many build in specific search queries and you can access them through the IQuery interface. You never need to manually instantiate a query because you get it from the Everything class:

IEverything everything = new Everything()
IQuery query = everything.Search()

As you can see in code above you get a IQuery object by calling everything.Search() method. From this object you can then get access to specific search queries with the following properties:

  • Name: returns a INameQueryable
  • Size: returns a ISizeQueryable
  • CreationDate: returns a IDateQueryable
  • ModificationDate: returns a IDateQueryable
  • AccessDate: returns a IDateQueryable
  • RunDate: returns a IDateQueryable
  • Music: returns a IMusicQueryable
  • File: returns a IFileQueryable
  • Image: returns a IImageQueryable

Modifiers

You can modify a query thanks to the following modifiers:

  • Not: returns a IQuery that simply negate the query current query
  • Files: returns a IQuery that search for files only
  • Folders: returns a IQuery that search for folders only
  • NoSubFolder: returns a IQuery do not search into subfolders
IEverything everything = new Everything()
IQuery query = everything.Search().Files;

Previous Next

Clone this wiki locally