SecondaryAuthenticationFactorInfo.UpdateDevicePresenceAsync 方法

定义

已弃用。 手动将状态分配给设备。

注意

此 API 并非适用于所有应用。 除非你的开发人员帐户由 Microsoft 专门预配为使用 secondaryAuthenticationFactor 功能,否则对此 API 的调用将失败。 若要申请批准,请联系 cdfonboard@microsoft.com。 有关功能的详细信息,请参阅 应用功能声明。 有关配套设备框架的概述,请参阅 Windows 解锁与配套 (IoT) 设备 概述。

public:
 virtual IAsyncAction ^ UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence presenceState) = UpdateDevicePresenceAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence const& presenceState);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("UpdateDevicePresenceAsync is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.Foundation.UniversalApiContract")]
IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence const& presenceState);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence presenceState);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("UpdateDevicePresenceAsync is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence presenceState);
function updateDevicePresenceAsync(presenceState)
Public Function UpdateDevicePresenceAsync (presenceState As SecondaryAuthenticationFactorDevicePresence) As IAsyncAction

参数

返回

操作的异步操作。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

注解

仅当配套设备的监视模式设置为 SecondaryAuthenticationFactorDevicePresenceMonitoringMode.AppManaged 时,才应使用此方法。 在这种情况下,使用配套设备进行身份验证的应用必须包含第三方应用的状态监视功能,并根据结果手动分配 SecondaryAuthenticationFactorDevicePresence 值。

适用于