MiracastReceiverSession 类

定义

一个 对象,该对象封装与接收传入 Miracast 连接相关的功能。

public ref class MiracastReceiverSession sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MiracastReceiverSession final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MiracastReceiverSession : System.IDisposable
Public NotInheritable Class MiracastReceiverSession
Implements IDisposable
继承
Object Platform::Object IInspectable MiracastReceiverSession
属性
实现

Windows 要求

设备系列
Windows 10, version 1903 (在 10.0.18362.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v8.0 中引入)

属性

AllowConnectionTakeover

指定应用是否允许新连接接管正在进行的 Miracast 连接。

MaxSimultaneousConnections

指定应用愿意在 MiracastReceiverSession 上处理的最大同时连接数。

方法

Close()

关闭 MiracastReceiverSession 对象并断开任何关联的 MiracastReceiverConnection 对象。

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

Start()

开始侦听传入的 Miracast 连接。

StartAsync()

开始侦听传入的 Miracast 连接。

事件

ConnectionCreated

收到新的传入 MiracastReceiverConnection 时引发的事件。

Disconnected

MiracastReceiverConnection 已由 Miracast 发送器断开连接时引发的事件。

MediaSourceCreated

创建 MiracastReceiverConnectionMediaSource 对象时引发的事件。

适用于