KnownFolders.MusicLibrary | musicLibrary property

Applies to Windows and Windows Phone

Gets the Music library.

Syntax


var musicLibrary = Windows.Storage.KnownFolders.musicLibrary;

Property value

Type: StorageFolder

The Music library.

Remarks

Prerequisites

To access the Music library, in the app manifest, specify the Music Library capability. Learn more about capabilities in Access to user resources using the Windows Runtime.

  • Applies to Windows Phone

Note  

For info about accessing the Music library in a Windows Phone Store app, see Access media libraries in Windows Phone apps.

Return value

To work with the Music library and its contents, call the methods and properties of the StorageFolder class.

Libraries let users view related content in a single location. A library is a virtual folder. The folders in a library remain in their original locations. Learn more about libraries in Windows Libraries.

More info

  • Applies to Windows

Note  

The Music Library typically has the following path.

%USERPROFILE%\Music

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

Capabilities

musicLibrary

See also

KnownFolders
Access media libraries in Windows Phone apps

 

 

Show:
© 2015 Microsoft