MiracastReceiverConnection.Disconnect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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.