UserWatcher UserWatcher UserWatcher UserWatcher UserWatcher Class


Provides events that fire during enumeration of users, when the collection of users changes, or when a user's authentication status changes.

public : sealed class UserWatcher
struct winrt::Windows::System::UserWatcher
public sealed class UserWatcher
Public NotInheritable Class UserWatcher
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Status Status Status Status Status

Gets the status of a user watcher.


Start() Start() Start() Start() Start()

Starts the user watcher.

Stop() Stop() Stop() Stop() Stop()

Stops the user watcher.


Added Added Added Added Added

Fires when a user is added to the collection of users returned by User.FindAllAsync.

AuthenticationStatusChanged AuthenticationStatusChanged AuthenticationStatusChanged AuthenticationStatusChanged AuthenticationStatusChanged

Fires when a user's authentication status has changed.

AuthenticationStatusChanging AuthenticationStatusChanging AuthenticationStatusChanging AuthenticationStatusChanging AuthenticationStatusChanging

Fires when a user's authentication status is about to change.

EnumerationCompleted EnumerationCompleted EnumerationCompleted EnumerationCompleted EnumerationCompleted

Fires when the initial pass of watcher events has been processed and the collection of users is complete.

Removed Removed Removed Removed Removed

Fires when a user is removed from the collection of users returned by User.FindAllAsync.

Stopped Stopped Stopped Stopped Stopped

Fires when the user watcher has stopped.

Updated Updated Updated Updated Updated

Fires when the data associated with a user has changed.