共用方式為


MediaStreamSourceClosedRequest 類別

定義

表示 MediaStreamSource.closed 事件要使用的物件,以提供應用程式的資訊。

public ref class MediaStreamSourceClosedRequest sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaStreamSourceClosedRequest final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaStreamSourceClosedRequest
Public NotInheritable Class MediaStreamSourceClosedRequest
繼承
Object Platform::Object IInspectable MediaStreamSourceClosedRequest
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

Reason屬性提供重新降級MediaStreamSource關閉的原因。

如需在 UWP 應用程式中使用媒體資料流程來源的範例,請參閱 MediaStreamSource 範例

屬性

Reason

取得媒體資料流程來源關閉的原因。

適用於

另請參閱