Udostępnij za pośrednictwem


MediaBindingEventArgs.SetStreamReference Method

Definition

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

public:
 virtual void SetStreamReference(IRandomAccessStreamReference ^ stream, Platform::String ^ contentType) = SetStreamReference;
void SetStreamReference(IRandomAccessStreamReference const& stream, winrt::hstring const& contentType);
public void SetStreamReference(IRandomAccessStreamReference stream, string contentType);
function setStreamReference(stream, contentType)
Public Sub SetStreamReference (stream As IRandomAccessStreamReference, contentType As String)

Parameters

stream
IRandomAccessStreamReference

A stream reference containing the media content to be bound.

contentType
String

Platform::String

winrt::hstring

A string specifying the content type of the media content.

Applies to

See also