Condividi tramite


SecondaryAuthenticationFactorAuthentication.StartAuthenticationAsync Metodo

Definizione

Avviare un'autenticazione con un dispositivo complementare.

Nota

Questa API non è disponibile per tutte le app. A meno che l'account sviluppatore non venga effettuato appositamente da Microsoft per usare la funzionalità secondaryAuthenticationFactor , le chiamate a questa API avranno esito negativo. Per richiedere l'approvazione, contattare cdfonboard@microsoft.com. Per altre informazioni sulle funzionalità, vedere Dichiarazioni di funzionalità dell'app. Per una panoramica di Companion Device Framework, vedere la panoramica dei dispositivi Windows Unlock with companion (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)

Parametri

deviceId
String

Platform::String

winrt::hstring

ID del dispositivo con cui eseguire l'autenticazione.

serviceAuthenticationNonce
IBuffer

L'autenticazione del servizio nonce.

Restituisce

Al termine di questo metodo, restituisce i risultati dell'autenticazione.

Attributi

Si applica a

Vedi anche