Skip to main content
StorageFolder.DisplayType | displayType property

Gets the user-friendly description of the type of the folder; for example, JPEG image.


var displayType = storageFolder.displayType;

public string DisplayType { get; }

Public ReadOnly Property DisplayType As String

property String^ DisplayType { 
   String^ get();

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The user-friendly description of the type of the folder; for example, JPEG image.


For an ordinary folder in the file system, the DisplayType property returns File folder.

When you query a library folder for its contents with a CommonFolderQuery value other than DefaultQuery, the folders that are returned are virtual folders. These virtual folders represent containers for groups of files in the subfolders of the current folder. Files are grouped into folders based on the specified value from the CommonFolderQuery enumeration. For example, if you specify GroupByMonth, the query returns a list of virtual folders such as July 2014, August 2014, and September 2014.

Here are some examples of the value of the DisplayType property when you use a CommonFolderQuery value other than DefaultQuery.

  • If you specify GroupByType, the value of DisplayType may be JPEG image or PNG image. The folders have the same name as the display type.
  • If you specify GroupByMonth, the value of DisplayType is Stack. The folders have names like October 2014 or November 2014.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0


Windows::Storage [C++]



Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]


Windows::Storage [C++]



See also