Table of Contents

Enum CommonFileQuery

Namespace
Windows.Storage.Search
Assembly
Windows.Storage.dll

Specifies how to sort the files in the query results and determines whether the query is shallow or deep. Query results for deep queries include all files in all of the subfolders of the current folder, sorted according to the specified option.

public enum CommonFileQuery

Fields

DefaultQuery = 0

A shallow list of files in the current folder, similar to the list that File Explorer provides. You can use this option for any storage location.

OrderByDate = 5

A deep, flat list of files in a folder and its subfolders, sorted by System.ItemDate. You can use this option only for folders in a library or the HomeGroup folder.

OrderByMusicProperties = 3

A deep, flat list of files in a folder and its subfolders, sorted by music properties. You can use this option only for folders in a library or the HomeGroup folder.

OrderByName = 1

A deep, flat list of files in a folder and its subfolders, sorted by System.ItemNameDisplay. You can use this option for any storage location.

OrderBySearchRank = 4

A deep, flat list of files in a folder and its subfolders, sorted by System.Search.Rank followed by System.DateModified. You can use this option for any storage location.

OrderByTitle = 2

A deep, flat list of files in a folder and its subfolders, sorted by System.Title. You can use this option only for folders in a library or the HomeGroup folder.