CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs CurrentMediaPlaybackItemChangedEventArgs Class

Definition

Provides data for the MediaPlaybackList::CurrentItemChanged event.

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

Properties

NewItem NewItem NewItem NewItem

Gets the new current MediaPlaybackItem.

public : MediaPlaybackItem NewItem { get; }
public MediaPlaybackItem NewItem { get; }
Public ReadOnly Property NewItem As MediaPlaybackItem
var mediaPlaybackItem = currentMediaPlaybackItemChangedEventArgs.newItem;

OldItem OldItem OldItem OldItem

Gets the previous current MediaPlaybackItem.

public : MediaPlaybackItem OldItem { get; }
public MediaPlaybackItem OldItem { get; }
Public ReadOnly Property OldItem As MediaPlaybackItem
var mediaPlaybackItem = currentMediaPlaybackItemChangedEventArgs.oldItem;

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.

public : MediaPlaybackItemChangedReason Reason { get; }
public MediaPlaybackItemChangedReason Reason { get; }
Public ReadOnly Property Reason As MediaPlaybackItemChangedReason
var mediaPlaybackItemChangedReason = currentMediaPlaybackItemChangedEventArgs.reason;
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)