-api-id | -api-type |
---|---|
M:Windows.Services.Store.StoreContext.GetDefault |
winrt method |
Gets a StoreContext object that can be used to access and manage Microsoft Store-related data for the current user in the context of the current app.
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.
If your app is a multi-user app, use the GetForUser method to get a StoreContext object for a specific user.