StoreContext.User Property

Definition

Gets info about the user that is associated with the current StoreContext object in a multi-user app.

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

Property Value

User

An object that provides info about the user that is associated with the current StoreContext object in a multi-user app.

Remarks

This property is only intended to be used in the context of a multi-user app. In this scenario, the User property returns the same User object that you passed to the GetForUser method when you created the StoreContext object for a specific user.

If your app is a single-user app, (that is, it runs only in the context of the user that launched the app), this property returns null.

Applies to