SecondaryAuthenticationFactorAuthentication.AuthenticationStageChanged Событие
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Срабатывает при изменении этапа проверки подлинности.
Примечание
Этот API доступен не для всех приложений. Если ваша учетная запись разработчика не специально подготовлена корпорацией Майкрософт для использования возможности secondaryAuthenticationFactor , вызовы этого API завершатся ошибкой. Чтобы подать заявку на утверждение, обратитесь в .cdfonboard@microsoft.com Дополнительные сведения о возможностях см. в разделе Объявления возможностей приложений. Обзор платформы сопутствующих устройств см. в статье Общие сведения о разблокировке Windows с помощью устройств-компаньонов (IoT).
// Register
static event_token AuthenticationStageChanged(EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs> const& handler) const;
// Revoke with event_token
static void AuthenticationStageChanged(event_token const* cookie) const;
// Revoke with event_revoker
static SecondaryAuthenticationFactorAuthentication::AuthenticationStageChanged_revoker AuthenticationStageChanged(auto_revoke_t, EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs> const& handler) const;
/// [add: 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")]
/// [remove: 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")]
// Register
static event_token AuthenticationStageChanged(EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs> const& handler) const;
// Revoke with event_token
static void AuthenticationStageChanged(event_token const* cookie) const;
// Revoke with event_revoker
static SecondaryAuthenticationFactorAuthentication::AuthenticationStageChanged_revoker AuthenticationStageChanged(auto_revoke_t, EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs> const& handler) const;
public static event System.EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs> AuthenticationStageChanged;
[add: 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")]
[remove: 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 event System.EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs> AuthenticationStageChanged;
function onAuthenticationStageChanged(eventArgs) { /* Your code */ }
Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication.addEventListener("authenticationstagechanged", onAuthenticationStageChanged);
Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication.removeEventListener("authenticationstagechanged", onAuthenticationStageChanged);
- or -
Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication.onauthenticationstagechanged = onAuthenticationStageChanged;
Public Shared Custom Event AuthenticationStageChanged As EventHandler(Of SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs)
Тип события
EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs>
EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs>
- Атрибуты