Share via


ProductListing.IsOnSale Property

Definition

Gets a value that indicates whether the add-on (also called an in-app product or IAP) is on sale.

public:
 property bool IsOnSale { bool get(); };
bool IsOnSale();
public bool IsOnSale { get; }
var boolean = productListing.isOnSale;
Public ReadOnly Property IsOnSale As Boolean

Property Value

Boolean

bool

Returns true if the in-app product is on sale, and otherwise false.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

For information about putting add-ons on sale, see Put apps and add-ons on sale.

Applies to

See also