CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs Class

Definition

Provides data for the MediaPlaybackList.CurrentItemChanged event.

public : sealed class CurrentMediaPlaybackItemChangedEventArgs
struct winrt::Windows::Media::Playback::CurrentMediaPlaybackItemChangedEventArgs
public sealed class CurrentMediaPlaybackItemChangedEventArgs
Public NotInheritable Class CurrentMediaPlaybackItemChangedEventArgs
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Get an instance of this class by handling the MediaPlaybackList.CurrentItemChanged event.

Version history

Windows version SDK version Value added
1703 15063 Reason

Properties

NewItem NewItem NewItem NewItem NewItem

Gets the new current MediaPlaybackItem.

OldItem OldItem OldItem OldItem OldItem

Gets the previous current MediaPlaybackItem.

Reason Reason Reason Reason Reason

Gets the reason why the current MediaPlaybackItem in a MediaPlaybackList changed, such as if the previous item completed playback successfully or if there was an error playing back the previous item.