Context. Get Default Method
public: static StoreContext ^ GetDefault();
static StoreContext GetDefault();
public static StoreContext GetDefault();
Public Shared Function GetDefault () As StoreContext
An object that you can use to access and manage Microsoft Store-related data for the current user.
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 that you can use to access and manage Microsoft Store-related data for the user. Most Universal Windows Platform (UWP) apps are single-user apps. For more information about this method, see In-app purchases and trials.