Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.33 KB

storecontext_getdefault_846721868.md

File metadata and controls

26 lines (18 loc) · 1.33 KB
-api-id -api-type
M:Windows.Services.Store.StoreContext.GetDefault
winrt method

Windows.Services.Store.StoreContext.GetDefault

-description

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.

-returns

An object that you can use to access and manage Microsoft Store-related data for the current user.

-remarks

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.

-examples

-see-also

In-app purchases and trials, Store sample