共用方式為


SecondaryAuthenticationFactorAuthentication.StartAuthenticationAsync 方法

定義

使用隨附裝置啟動驗證。

注意

此 API 不適用於所有應用程式。 除非您的開發人員帳戶由 Microsoft 特別布建,才能使用 secondaryAuthenticationFactor 功能,否則呼叫此 API 將會失敗。 若要申請核准,請連絡 cdfonboard@microsoft.com 。 如需功能的詳細資訊,請參閱 應用程式功能宣告。 如需隨附裝置架構的概觀,請參閱 Windows 解除鎖定與隨附 (IoT) 裝置 概觀。

public:
 static IAsyncOperation<SecondaryAuthenticationFactorAuthenticationResult ^> ^ StartAuthenticationAsync(Platform::String ^ deviceId, IBuffer ^ serviceAuthenticationNonce);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<SecondaryAuthenticationFactorAuthenticationResult> StartAuthenticationAsync(winrt::hstring const& deviceId, IBuffer const& serviceAuthenticationNonce);
/// [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")]
 static IAsyncOperation<SecondaryAuthenticationFactorAuthenticationResult> StartAuthenticationAsync(winrt::hstring const& deviceId, IBuffer const& serviceAuthenticationNonce);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<SecondaryAuthenticationFactorAuthenticationResult> StartAuthenticationAsync(string deviceId, IBuffer serviceAuthenticationNonce);
[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 static IAsyncOperation<SecondaryAuthenticationFactorAuthenticationResult> StartAuthenticationAsync(string deviceId, IBuffer serviceAuthenticationNonce);
function startAuthenticationAsync(deviceId, serviceAuthenticationNonce)
Public Shared Function StartAuthenticationAsync (deviceId As String, serviceAuthenticationNonce As IBuffer) As IAsyncOperation(Of SecondaryAuthenticationFactorAuthenticationResult)

參數

deviceId
String

Platform::String

winrt::hstring

要驗證之裝置的識別碼。

serviceAuthenticationNonce
IBuffer

服務驗證 Nonce。

傳回

此方法完成時,它會傳回驗證的結果。

屬性

適用於

另請參閱