共用方式為


MiracastReceiverConnection.Disconnect 方法

定義

多載

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)

參數

reason
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)

參數

reason
MiracastReceiverDisconnectReason

MiracastReceiverDisconnectReason列舉的值,指定中斷 Miracast 傳輸器連接的原因。

message
String

Platform::String

winrt::hstring

人類可閱讀的訊息,指出中斷 Miracast 傳輸器連線的原因。

屬性

備註

訊息參數的值不一定會向使用者顯示,但有助於分析會話中斷連線的原因。

另請參閱

適用於