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

获取媒体流源关闭的原因。

适用于

另请参阅