Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
CurrentMediaPlaybackItemChangedEventArgs Class
Definition
- Namespace:
- Windows.Media.Playback
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
Windows requirements
| Requirements | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
Feedback
Was this page helpful?
