共用方式為


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 的先前狀態。

適用於