MediaBindingEventArgs.SetStreamReference 方法

定义

将媒体内容流引用绑定到与事件关联的 MediaSource

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)

参数

stream
IRandomAccessStreamReference

包含要绑定的媒体内容的流引用。

contentType
String

Platform::String

winrt::hstring

一个指定媒体内容的内容类型的字符串。

适用于

另请参阅