MiracastReceiver.DisconnectAllAndApplySettings 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.
Disconnects all currently connected Miracast connections and applies the specified settings on the MiracastReceiver.
public:
virtual MiracastReceiverApplySettingsResult ^ DisconnectAllAndApplySettings(MiracastReceiverSettings ^ settings) = DisconnectAllAndApplySettings;
MiracastReceiverApplySettingsResult DisconnectAllAndApplySettings(MiracastReceiverSettings const& settings);
public MiracastReceiverApplySettingsResult DisconnectAllAndApplySettings(MiracastReceiverSettings settings);
function disconnectAllAndApplySettings(settings)
Public Function DisconnectAllAndApplySettings (settings As MiracastReceiverSettings) As MiracastReceiverApplySettingsResult
Parameters
- settings
- MiracastReceiverSettings
The settings that will be applied.
Returns
A MiracastReceiverApplySettingsResult containing information about the result of the operation.
Remarks
Because this method may block for a noticeable period of time, you should not call it from the UI thread or from a single-threaded apartment. Instead, use the asyncronous method DisconnectAllAndApplySettingsAsync.
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.