共用方式為


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

字串,指定媒體內容的內容類型。

適用於

另請參閱