Context. Get For User(User) Method
public: static StoreContext ^ GetForUser(User ^ user);
static StoreContext GetForUser(User const & user);
public static StoreContext GetForUser(User user);
Public Shared Function GetForUser (user As User) As StoreContext
An object that identifies the user whose Microsoft Store-related data you want to access and manage.
An object that you can use to access and manage Microsoft Store-related data for the specified user.
If your app is a multi-user app, use the GetForUser method to get a StoreContext object that you can use to access and manage Microsoft Store-related data for a specific user who is signed in with their Microsoft account while using the app. For more information about this method, see In-app purchases and trials. For more information about multi-user apps, see Introduction to multi-user applications.
If your app is a single-user app (that is, it runs only in the context of the user that launched the app), use the GetDefault method to get a StoreContext object for the current user. Most Universal Windows Platform (UWP) apps are single-user apps.