MiracastReceiver.DisconnectAllAndApplySettingsAsync 方法

定义

异步断开所有当前连接的 Miracast 连接,并在 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)

参数

settings
MiracastReceiverSettings

将应用的设置。

返回

完成时返回 MiracastReceiverApplySettingsResult 对象的异步操作。

属性

注解

检查 MiracastReceiverApplySettingsResult 返回参数以确认已成功应用设置。 如果操作系统启用了 Miracast(例如通过“设置”应用),则不允许更改设置, MiracastReceiverApplySettingsResult 返回值将指示访问被拒绝。

适用于

另请参阅