Platforms to show: All Mac Windows Linux Cross-Platform

WindowsStoreProductMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Windows Store MBS WinFrameworks Plugin 20.4 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Represents a product that is available in the Microsoft Store.
Example
// show title and price of your app in the Microsoft Store
// Store is a property of the window: Store As WindowsStoreContextMBS
Store = New WindowsStoreContextMBS(Self)
Store.GetStoreProductForCurrentAppAsync AddressOf GotProduct

// a method in the window:
Sub GotProduct(ErrorCode As Integer, result As WindowsStoreProductResultMBS)
If result = Nil Or result.Product = Nil Then
System.DebugLog "No product, error " + ErrorCode.ToString
Return
End If
Var p As WindowsStoreProductMBS = result.Product
System.DebugLog p.Title + " (" + p.StoreId + "): " + p.Price.FormattedPrice
End Sub

Products in the Store are organized in a hierarcy of product, SKU, and availability objects. Products are represented by StoreProduct objects. The SKUs for each product are represented by StoreSku objects, and the availabilities for each SKU are represented by StoreAvailability objects. For more information, see In-app purchases and trials.
To retrieve a StoreProduct object for the current app, use the GetStoreProductForCurrentAppAsync method.
To retrieve StoreProduct objects for products that can be purchased from within the current app, use these methods.

  • GetAssociatedStoreProductsAsync
  • GetAssociatedStoreProductsWithPagingAsync
  • GetStoreProductsAsync
  • GetUserCollectionAsync
  • GetUserCollectionWithPagingAsync
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no subclasses.

Blog Entries

Some properties using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS WinFrameworks Plugin.


WindowsStorePriceMBS   -   WindowsStoreProductQueryResultMBS


The biggest plugin in space...