MediaSourceStateChangedEventArgs 类

定义

MediaSource 对象的 StateChanged 事件提供数据。

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

Windows 要求

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

注解

通过处理 StateChanged 事件获取此类的实例。

属性

NewState

获取 MediaSource 的新当前状态。

OldState

获取状态更改之前 MediaSource 的先前状态。

适用于