CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs Class

Definition

Provides data for the MediaPlaybackList::CurrentItemChanged event.

public sealed class CurrentMediaPlaybackItemChangedEventArgs : ICurrentMediaPlaybackItemChangedEventArgs, ICurrentMediaPlaybackItemChangedEventArgs2public sealed class CurrentMediaPlaybackItemChangedEventArgs : ICurrentMediaPlaybackItemChangedEventArgs, ICurrentMediaPlaybackItemChangedEventArgs2Public NotInheritable Class CurrentMediaPlaybackItemChangedEventArgs Implements ICurrentMediaPlaybackItemChangedEventArgs, ICurrentMediaPlaybackItemChangedEventArgs2
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.

Properties

NewItem NewItem NewItem

Gets the new current MediaPlaybackItem.

public MediaPlaybackItem NewItem { get; }public MediaPlaybackItem NewItem { get; }Public ReadOnly Property NewItem As MediaPlaybackItem
Attributes

OldItem OldItem OldItem

Gets the previous current MediaPlaybackItem.

public MediaPlaybackItem OldItem { get; }public MediaPlaybackItem OldItem { get; }Public ReadOnly Property OldItem As MediaPlaybackItem
Attributes

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.

public MediaPlaybackItemChangedReason Reason { get; }public MediaPlaybackItemChangedReason Reason { get; }Public ReadOnly Property Reason As MediaPlaybackItemChangedReason
Attributes