CoreApplicationContext.CurrentUserChanged Event

Event signaling that the current user has changed.

Syntax

public:
static event EventHandler<Object^ >^ CurrentUserChanged {
         EventRegistrationToken add (EventHandler<Object^ >^ value);
         void remove (EventRegistrationToken token);
}  

Remarks

This event indicates that the user who brought the title to the foreground has changed. This event is only fired when a new user brings the title to the foreground. For example the event would be triggered in the following scenario:

  1. User A launches the title and CurrentUser becomes user A
  2. User B hits the Nexus button to go back home
  3. User B launches the title and the CurrentUserChanged event is fired

Note that user A or B signing out at any time would not trigger the CurrentUserChanged event or change CurrentUser.

Requirements

Namespace: Windows.Xbox.ApplicationModel.Core

Metadata: windows.winmd

See also

Reference

CoreApplicationContext Class

CoreApplicationContext Members

Windows.Xbox.ApplicationModel.Core Namespace