Expand Minimize

StorageFolder.DisplayType | displayType property

Applies to Windows and Windows Phone

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

Syntax


var displayType = storageFolder.displayType;

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.

Remarks

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

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]

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

StorageFolder

 

 

Show:
© 2014 Microsoft