इसके माध्यम से साझा किया गया


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.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.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CurrentMediaPlaybackItemChangedEventArgs
Public NotInheritable Class CurrentMediaPlaybackItemChangedEventArgs
Inheritance
Object Platform::Object IInspectable CurrentMediaPlaybackItemChangedEventArgs
Attributes

Windows 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