MediaPlaybackItemFailedEventArgs 类

定义

提供 MediaPlaybackList.ItemFailed 事件的数据。

public ref class MediaPlaybackItemFailedEventArgs 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 MediaPlaybackItemFailedEventArgs 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 MediaPlaybackItemFailedEventArgs
Public NotInheritable Class MediaPlaybackItemFailedEventArgs
继承
Object Platform::Object IInspectable MediaPlaybackItemFailedEventArgs
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

通过处理 MediaPlaybackList.ItemFailed 事件获取此类的实例。

属性

Error

获取 MediaPlaybackItem 错误的包装器对象,该对象提供有关错误原因的高级信息。

Item

获取与错误关联的 MediaPlaybackItem

适用于