SecondaryAuthenticationFactorAuthentication.AuthenticationStageChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fires when the authentication stage changes.
Note
This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft to use the secondaryAuthenticationFactor capability, calls to this API will fail. To apply for approval, contact cdfonboard@microsoft.com. For more information on capabilities, see App capability declarations. For an overview of the Companion Device Framework, see the Windows Unlock with companion (IoT) devices overview.
// 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)
Event Type
EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs>
EventHandler<SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs>
- Attributes