Share via


IActivatedEventArgsWithUser.User Property

Definition

Gets the user that the app was activated for.

public:
 property User ^ User { User ^ get(); };
User User();
public User User { get; }
var user = iActivatedEventArgsWithUser.user;
Public ReadOnly Property User As User

Property Value

The user that the app was activated for. This property returns the logged-in user on platforms that only support single-user sessions. For platforms that support multiple users in a session, this property returns the logged-in user that the app was activated for.

Remarks

Multi-user apps can use this property to allow or restrict app behavior. For example, you might restrict access to content or features based on the user’s credentials.

Applies to