DateStackOption DateStackOption DateStackOption DateStackOption DateStackOption Enum


Indicates the unit of time used to group files into folders if a CommonFolderQuery based on date is used to create a QueryOptions object.

public : enum class DateStackOption
enum class winrt::Windows::Storage::Search::DateStackOption : int32_t
public enum DateStackOption
Public Enum DateStackOption
var value = Windows.Storage.Search.DateStackOption.month;
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Month Month Month Month Month

The content is grouped by month.

None None None None None

The query options are not based on the date.

Year Year Year Year Year

The content is grouped by year.


For example, if you create a QueryOptions object using CommonFolderQuery.GroupByYear the DateStackOption property will contain the DateStackOption.Year value.