共用方式為


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

要記錄的錯誤訊息。

傳回

這個方法不會傳回值。

屬性

適用於

另請參閱