MiracastReceiverConnection.Disconnect Method

Definition

Overloads

Disconnect(MiracastReceiverDisconnectReason)

Closes the connection and immediately disconnects the connected MiracastTransmitter.

Disconnect(MiracastReceiverDisconnectReason, String)

Closes the connection and immediately disconnects the connected MiracastTransmitter.

Disconnect(MiracastReceiverDisconnectReason)

Closes the connection and immediately disconnects the connected 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)

Parameters

reason
MiracastReceiverDisconnectReason

A value from the MiracastReceiverDisconnectReason enumeration specifying the reason for disconnecting the Miracast Transmitter.

Attributes

See also

Applies to

Disconnect(MiracastReceiverDisconnectReason, String)

Closes the connection and immediately disconnects the connected 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)

Parameters

reason
MiracastReceiverDisconnectReason

A value from the MiracastReceiverDisconnectReason enumeration specifying the reason for disconnecting the Miracast Transmitter.

message
String

Platform::String

winrt::hstring

A human-readable message, stating a reason for disconnecting the Miracast Transmitter.

Attributes

Remarks

The value of the message parameter is not necessarily displayed to the user but can assist in analyzing the cause of session disconnect.

See also

Applies to