MediaPlaybackSessionBufferingStartedEventArgs 类

定义

MediaPlaybackSessionBufferingStarted 事件提供数据。

public ref class MediaPlaybackSessionBufferingStartedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaPlaybackSessionBufferingStartedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaPlaybackSessionBufferingStartedEventArgs
Public NotInheritable Class MediaPlaybackSessionBufferingStartedEventArgs
继承
Object Platform::Object IInspectable MediaPlaybackSessionBufferingStartedEventArgs
属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

注解

为了保持向后兼容性, BufferingStarted 委托签名将事件参数作为泛型对象接收。 若要获取此类的实例,请使用 as 运算符关键字 (keyword) (C#) 或dynamic_cast (C++) 将 args 参数强制转换为 MediaPlaybackSessionBufferingStartedEventArgs

属性

IsPlaybackInterruption

获取一个值,该值指示系统是否预期触发了事件的缓冲,例如,当新项开始播放时或用户查找媒体项中的新位置之后,或者是否是意外中断(例如,当缓冲由网络连接降级导致时)。

适用于