-
Notifications
You must be signed in to change notification settings - Fork 29
Query
Julien Amsellem edited this page Sep 27, 2017
·
1 revision
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 aINameQueryable -
Size: returns aISizeQueryable -
CreationDate: returns aIDateQueryable -
ModificationDate: returns aIDateQueryable -
AccessDate: returns aIDateQueryable -
RunDate: returns aIDateQueryable -
Music: returns aIMusicQueryable -
File: returns aIFileQueryable -
Image: returns aIImageQueryable
You can modify a query thanks to the following modifiers:
-
Not: returns aIQuerythat simply negate the query current query -
Files: returns aIQuerythat search for files only -
Folders: returns aIQuerythat search for folders only -
NoSubFolder: returns aIQuerydo not search into subfolders
IEverything everything = new Everything()
IQuery query = everything.Search().Files;