ProductListing class

ProductListing class

Provides localized information that details an in-app product.

Syntax


public ref class ProductListing sealed 

Members

The ProductListing class has these types of members:

Properties

The ProductListing class has these properties.

PropertyAccess typeDescription

CurrencyCode

Read-onlyGets the currency code associated with the user's market, such as USD or CAD.

Description

Read-onlyGets the description for the in-app product.

FormattedBasePrice

Read-onlyGets the base price for the in-app product with the appropriate formatting for the current market.

FormattedPrice

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

ImageUri

Read-onlyGets the URI of the image associated with the in-app product.

IsOnSale

Read-onlyGets a value that indicates whether the in-app product is on sale.

Keywords

Read-onlyGets the list of keywords associated with the in-app product. These keywords are useful for filtering product lists by keyword, for example, when calling LoadListingInformationByKeywordsAsync.

Name

Read-onlyGets the descriptive name of the in-app product that is displayed customers in the current market.

ProductId

Read-onlyGets the in-app product ID.

ProductType

Read-onlyGets the type of this in-app product. Possible values are defined by ProductType.

SaleEndDate

Read-onlyGets the end date of the sale period for the in-app product.

Tag

Read-onlyGets the tag string that contains custom information about an in-app product.

 

Remarks

You access this object by picking an element of the collection that the ProductListings property of the ListingInformation object returns as this code example shows.

No code example is currently available or this language may not be supported.

Examples

The code example here shows how to get the ListingInformation from simulated app data and then get the ProductListing object an in-app product.

No code example is currently available or this language may not be supported.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

See also

Object
ListingInformation
ProductListings

 

 

Show:
© 2016 Microsoft