KnownFolders.MediaServerDevices | mediaServerDevices property

Applies to Windows only

Gets the media server (DLNA) devices folder.


var mediaServerDevices = Windows.Storage.KnownFolders.mediaServerDevices;

Property value

Type: StorageFolder

The folder of media server (DLNA) devices.


Note  Content in the Documents library of a media server devices folder won't be visible to your app regardless of the capabilities declared in your app's manifest and regardless of the user's sharing settings.

To use this property, your app must have at least one of the following capabilities: Pictures library, Music library, or Videos library. Learn more about these capabilities in Access to user resources using the Windows Runtime.

When your app gets the folder of media server devices, it will see only the content that corresponds to the capabilities declared in your app's manifest. For example, an app that has only the Music library capability only sees music content in the media servers devices folder.

You can enumerate files and folders in this location, but when you create a query, the shapes you can specify with CommonFileQuery and CommonFolderQuery are limited to the defaultQuery, orderByName, and orderBySearchRank values.

Some Digital Media Servers only support a single media restriction and therefore may incorrectly return 0 files for a query. If 2 library capabilities are selected, for example Pictures library and Videos library, and 0 files are returned, try changing the application capabilities to include either 1 library capability or all 3 media library capabilities. No media restrictions are sent if all 3 media capabilities are specified.


Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported


Windows::Storage [C++]



See also




© 2014 Microsoft