MediaBindingEventArgs MediaBindingEventArgs MediaBindingEventArgs MediaBindingEventArgs MediaBindingEventArgs Class

Definition

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

public : sealed class MediaBindingEventArgs
struct winrt::Windows::Media::Core::MediaBindingEventArgs
public sealed class MediaBindingEventArgs
Public NotInheritable Class MediaBindingEventArgs
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

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 MediaBinder MediaBinder MediaBinder MediaBinder

Gets the MediaBinder associated with the binding event.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral() GetDeferral()

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

SetAdaptiveMediaSource(AdaptiveMediaSource) SetAdaptiveMediaSource(AdaptiveMediaSource) SetAdaptiveMediaSource(AdaptiveMediaSource) SetAdaptiveMediaSource(AdaptiveMediaSource) SetAdaptiveMediaSource(AdaptiveMediaSource)

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

SetDownloadOperation(DownloadOperation) SetDownloadOperation(DownloadOperation) SetDownloadOperation(DownloadOperation) SetDownloadOperation(DownloadOperation) SetDownloadOperation(DownloadOperation)

Binds a DownloadOperation to the MediaSource associated with the event.

SetStorageFile(IStorageFile) SetStorageFile(IStorageFile) SetStorageFile(IStorageFile) SetStorageFile(IStorageFile) SetStorageFile(IStorageFile)

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

SetStream(IRandomAccessStream, String) SetStream(IRandomAccessStream, String) SetStream(IRandomAccessStream, String) SetStream(IRandomAccessStream, String) SetStream(IRandomAccessStream, String)

Sets the media content to be bound to the MediaSource.

SetStreamReference(IRandomAccessStreamReference, String) SetStreamReference(IRandomAccessStreamReference, String) SetStreamReference(IRandomAccessStreamReference, String) SetStreamReference(IRandomAccessStreamReference, String) SetStreamReference(IRandomAccessStreamReference, String)

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

SetUri(Uri) SetUri(Uri) SetUri(Uri) SetUri(Uri) SetUri(Uri)

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

Events

Canceled Canceled Canceled Canceled Canceled

Occurs when the binding operation is cancelled.