Windows Dev Center

MediaControl.AlbumArt | albumArt property

[MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.]

Gets or sets the path to the artwork for the album cover.

Syntax


var albumArt = Windows.Media.MediaControl.albumArt;
Windows.Media.MediaControl.albumArt = albumArt;

Property value

Type: Windows.Foundation.Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]

Path to the artwork for the album cover.

Remarks

If you provide an invalid path for the album art property, it will cause an exception to be thrown. The only valid URI formats are ms-appx:// and ms-appdata://.

Requirements (device family)

Device family

Desktop

API contract

Windows.Media.MediaControlContract, introduced version 1.0

Namespace

Windows.Media
Windows::Media [C++]

Metadata

Windows.Media.MediaControlContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Media
Windows::Media [C++]

Metadata

Windows.winmd

See also

MediaControl

 

 

Show:
© 2015 Microsoft