ListingInformation class

Applies to Windows and Windows Phone

Provides the listing info that describes the app in the Windows Store.

Syntax

Public NotInheritable Class ListingInformation

Attributes

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

Members

The ListingInformation class has these types of members:

Properties

The ListingInformation class has these properties.

PropertyAccess typeDescription

AgeRating

Read-onlyGets the age rating for the app.

CurrentMarket

Read-onlyGets the country code associated with the user's location, such as US or CA, that is used to identify their market for transactions in the current session.

Description

Read-onlyGets the app's description in the current market.

FormattedPrice

Read-onlyGets the app's purchase price formatted for the current market and currency.

Name

Read-onlyGets the app's name in the current market.

ProductListings

Read-onlyGets information about in-app products available for purchase.

 

Remarks

The info that this object returns comes from the listing info you enter when you submit the app to the Windows Store.

You access this object through the LoadListingInformationAsync method of the CurrentAppSimulator object during testing, or the LoadListingInformationAsync method of the CurrentApp object when the app is distributed through the Windows Store.


// get current app object using the simulator interface
currentApp = Windows.ApplicationModel.Store.CurrentAppSimulator;

// get the listing information for the products this app supports
currentApp.loadListingInformationAsync().then(
    function (listing) {
        // loadListingInformationAsync returns the ListingInformation object in listing.
        // get one of the listing properties
        thisAppsAgeRating = listing.ageRating;
    }
);


Note  The CurrentApp object obtains its data from the Windows Store, so you must have a Windows Store developer account and the app must be published in the Windows Store. If you don't have a Windows Store developer account, you can test the functions of this class by using the CurrentAppSimulator.

Examples

This code example shows how to get the ListingInformation from simulated app data and then get the ProductListing object for one of the features offered by the app.

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

Requirements

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

See also

How your app appears in the Windows Store
ProductListing
ProductListings

 

 

Show:
© 2014 Microsoft