SecondaryAuthenticationFactorAuthentication.AbortAuthenticationAsync 方法

定义

中止身份验证。

注意

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

public:
 virtual IAsyncAction ^ AbortAuthenticationAsync(Platform::String ^ errorLogMessage) = AbortAuthenticationAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction AbortAuthenticationAsync(winrt::hstring const& errorLogMessage);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorAuthentication is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
IAsyncAction AbortAuthenticationAsync(winrt::hstring const& errorLogMessage);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction AbortAuthenticationAsync(string errorLogMessage);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorAuthentication is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction AbortAuthenticationAsync(string errorLogMessage);
function abortAuthenticationAsync(errorLogMessage)
Public Function AbortAuthenticationAsync (errorLogMessage As String) As IAsyncAction

参数

errorLogMessage
String

Platform::String

winrt::hstring

要记录的错误消息。

返回

此方法不返回值。

属性

适用于

另请参阅