ProductListing.FormattedPrice Property

Definition

Gets the purchase price for the in-app product with the appropriate formatting for the current market.

public:
 property Platform::String ^ FormattedPrice { Platform::String ^ get(); };
winrt::hstring FormattedPrice();
public string FormattedPrice { get; }
var string = productListing.formattedPrice;
Public ReadOnly Property FormattedPrice As String

Property Value

String

Platform::String

winrt::hstring

The purchase price with the appropriate formatting for the current market.

Remarks

If the in-app product is on sale in the current market, the FormattedPrice property returns the sale price. Use the FormattedBasePrice property to get the default price. If the in-app product is not on sale, FormattedBasePrice and FormattedPrice return the same value.

Applies to