CurrentMediaPlaybackItemChangedEventArgs Class

Definition

Provides data for the MediaPlaybackList.CurrentItemChanged event.

public ref class CurrentMediaPlaybackItemChangedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CurrentMediaPlaybackItemChangedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CurrentMediaPlaybackItemChangedEventArgs
Public NotInheritable Class CurrentMediaPlaybackItemChangedEventArgs
Inheritance
CurrentMediaPlaybackItemChangedEventArgs
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

Gets the new current MediaPlaybackItem.

OldItem

Gets the previous current MediaPlaybackItem.

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.

Applies to