Share via


MiracastReceiver.DisconnectAllAndApplySettingsAsync Method

Definition

Asynchronously disconnects all currently connected Miracast connections and applies the specified settings on the MiracastReceiver.

public:
 virtual IAsyncOperation<MiracastReceiverApplySettingsResult ^> ^ DisconnectAllAndApplySettingsAsync(MiracastReceiverSettings ^ settings) = DisconnectAllAndApplySettingsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MiracastReceiverApplySettingsResult> DisconnectAllAndApplySettingsAsync(MiracastReceiverSettings const& settings);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MiracastReceiverApplySettingsResult> DisconnectAllAndApplySettingsAsync(MiracastReceiverSettings settings);
function disconnectAllAndApplySettingsAsync(settings)
Public Function DisconnectAllAndApplySettingsAsync (settings As MiracastReceiverSettings) As IAsyncOperation(Of MiracastReceiverApplySettingsResult)

Parameters

settings
MiracastReceiverSettings

The settings that will be applied.

Returns

An asynchronous operation that returns a MiracastReceiverApplySettingsResult object upon completion.

Attributes

Remarks

Check the MiracastReceiverApplySettingsResult return parameter to confirm that the settings were successfully applied. If Miracast has been enabled by the operating system, such as through the Settings app, changes to the settings will not be allowed and the MiracastReceiverApplySettingsResult return value will indicate that access was denied.

Applies to

See also