MiracastReceiverConnection.Disconnect 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Disconnect(MiracastReceiverDisconnectReason) |
关闭连接并立即断开连接的 MiracastTransmitter 的连接。 |
Disconnect(MiracastReceiverDisconnectReason, String) |
关闭连接并立即断开连接的 MiracastTransmitter 的连接。 |
Disconnect(MiracastReceiverDisconnectReason)
关闭连接并立即断开连接的 MiracastTransmitter 的连接。
public:
virtual void Disconnect(MiracastReceiverDisconnectReason reason) = Disconnect;
/// [Windows.Foundation.Metadata.Overload("Disconnect")]
void Disconnect(MiracastReceiverDisconnectReason const& reason);
[Windows.Foundation.Metadata.Overload("Disconnect")]
public void Disconnect(MiracastReceiverDisconnectReason reason);
function disconnect(reason)
Public Sub Disconnect (reason As MiracastReceiverDisconnectReason)
参数
MiracastReceiverDisconnectReason 枚举中的值,指定断开 Miracast 发送器连接的原因。
- 属性
另请参阅
适用于
Disconnect(MiracastReceiverDisconnectReason, String)
关闭连接并立即断开连接的 MiracastTransmitter 的连接。
public:
virtual void Disconnect(MiracastReceiverDisconnectReason reason, Platform::String ^ message) = Disconnect;
/// [Windows.Foundation.Metadata.Overload("DisconnectWithMessage")]
void Disconnect(MiracastReceiverDisconnectReason const& reason, winrt::hstring const& message);
[Windows.Foundation.Metadata.Overload("DisconnectWithMessage")]
public void Disconnect(MiracastReceiverDisconnectReason reason, string message);
function disconnect(reason, message)
Public Sub Disconnect (reason As MiracastReceiverDisconnectReason, message As String)
参数
MiracastReceiverDisconnectReason 枚举中的值,指定断开 Miracast 发送器连接的原因。
- message
-
String
Platform::String
winrt::hstring
一条可读消息,指出断开 Miracast 发射机连接的原因。
- 属性
注解
消息参数的值不一定显示给用户,但有助于分析会话断开连接的原因。