UserAuthenticationStatusChangingEventArgs UserAuthenticationStatusChangingEventArgs UserAuthenticationStatusChangingEventArgs UserAuthenticationStatusChangingEventArgs Class

Definition

Provides data for a user authentication status changing event.

public : sealed class UserAuthenticationStatusChangingEventArgs : IUserAuthenticationStatusChangingEventArgspublic sealed class UserAuthenticationStatusChangingEventArgs : IUserAuthenticationStatusChangingEventArgsPublic NotInheritable Class UserAuthenticationStatusChangingEventArgs Implements IUserAuthenticationStatusChangingEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

At the time the UserAuthenticationStatusChanging event is raised, the user’s authentication status has not yet changed.

Properties

CurrentStatus CurrentStatus CurrentStatus CurrentStatus

Gets the user's current authentication status.

public : UserAuthenticationStatus CurrentStatus { get; }public UserAuthenticationStatus CurrentStatus { get; }Public ReadOnly Property CurrentStatus As UserAuthenticationStatus// You can use this property in JavaScript.

NewStatus NewStatus NewStatus NewStatus

Gets the user's new authentication status.

public : UserAuthenticationStatus NewStatus { get; }public UserAuthenticationStatus NewStatus { get; }Public ReadOnly Property NewStatus As UserAuthenticationStatus// You can use this property in JavaScript.

User User User User

Gets the user.

public : User User { get; }public User User { get; }Public ReadOnly Property User As User// You can use this property in JavaScript.
Value
User User User User

The user.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Requests a delay before the user's authentication status changes.

public : UserAuthenticationStatusChangeDeferral GetDeferral()public UserAuthenticationStatusChangeDeferral GetDeferral()Public Function GetDeferral() As UserAuthenticationStatusChangeDeferral// You can use this method in JavaScript.
Returns

Remarks

The change in user authentication status is delayed until the app calls the UserAuthenticationStatusChangeDeferral.Complete method or the deadline for the change has passed.

Use the deferral to complete asynchronous operations, such as saving data to a file, before the system changes the user’s authentication status.