MediaSourceStateChangedEventArgs Class

Definition

Provides data for the StateChanged event of a MediaSource object.

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
Inheritance
Object Platform::Object IInspectable MediaSourceStateChangedEventArgs
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

Get an instance of this class by handling the StateChanged event.

Properties

NewState

Gets the new current state of the MediaSource.

OldState

Gets the previous state of the MediaSource before the state changed.

Applies to