Udostępnij za pośrednictwem


MediaBindingEventArgs Class

Definition

Provides data for the Binding event and methods for binding media content to the associated MediaSource.

public ref class MediaBindingEventArgs 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 MediaBindingEventArgs 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 MediaBindingEventArgs
Public NotInheritable Class MediaBindingEventArgs
Inheritance
Object Platform::Object IInspectable MediaBindingEventArgs
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 Binding event.

Version history

Windows version SDK version Value added
1703 15063 SetAdaptiveMediaSource
1703 15063 SetStorageFile
1803 17134 SetDownloadOperation

Properties

MediaBinder

Gets the MediaBinder associated with the binding event.

Methods

GetDeferral()

Informs the system that the app might continue to perform work after the Binding event handler returns.

SetAdaptiveMediaSource(AdaptiveMediaSource)

Binds an adaptive media source to the MediaSource associated with the event.

SetDownloadOperation(DownloadOperation)

Binds a DownloadOperation to the MediaSource associated with the event.

SetStorageFile(IStorageFile)

Binds a storage file to the MediaSource associated with the event.

SetStream(IRandomAccessStream, String)

Sets the media content to be bound to the MediaSource.

SetStreamReference(IRandomAccessStreamReference, String)

Binds a media content stream reference to the MediaSource associated with the event.

SetUri(Uri)

Sets the URI of the media content to be bound to the MediaSource.

Events

Canceled

Occurs when the binding operation is cancelled.

Applies to