Share via


ListingInformation 클래스

정의

Microsoft Store의 앱을 설명하는 목록 정보를 제공합니다.

public ref class ListingInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ListingInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ListingInformation
Public NotInheritable Class ListingInformation
상속
Object Platform::Object IInspectable ListingInformation
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

예제

이 코드 예제에서는 시뮬레이션된 앱 데이터에서 ListingInformation을 가져와서 앱에서 제공하는 기능 중 하나에 대한 ProductListing 개체를 가져오는 방법을 보여 줍니다.

// get the license info for this app from the simulator
ListingInformation listing = await CurrentAppSimulator.LoadListingInformationAsync();

// get the price of the app from the listing info.
String thisAppsPrice = listing.FormattedPrice;

설명

이 개체가 반환하는 정보는 Microsoft Store에 앱을 제출할 때 입력한 목록 정보에서 가져옵니다.

테스트하는 동안 CurrentAppSimulator 개체의 LoadListingInformationAsync 메서드 또는 앱이 Microsoft Store를 통해 배포될 때 CurrentApp 개체의 LoadListingInformationAsync 메서드를 통해 이 개체에 액세스합니다.

참고

CurrentApp 개체는 Microsoft Store에서 해당 데이터를 가져오므로 Microsoft Store 개발자 계정이 있어야 하며 앱을 Microsoft Store에 게시해야 합니다. Microsoft Store 개발자 계정이 없는 경우 CurrentAppSimulator를 사용하여 이 클래스의 함수를 테스트할 수 있습니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1511 10586 CurrencyCode
1511 10586 FormattedBasePrice
1511 10586 IsOnSale
1511 10586 SaleEndDate

속성

AgeRating

앱의 연령 등급을 가져옵니다.

CurrencyCode

사용자 지역/국가(예: USD 또는 CAD)와 연결된 통화 코드를 가져옵니다.

CurrentMarket

현재 세션에서 트랜잭션에 대한 시장을 식별하는 데 사용되는 사용자 위치(예: 미국 또는 CA)와 연결된 국가 코드를 가져옵니다.

Description

현재 시장에서 앱의 설명을 가져옵니다.

FormattedBasePrice

현재 시장 및 통화에 대해 형식이 지정된 앱의 기본 가격을 가져옵니다.

FormattedPrice

현재 시장 및 통화에 대해 형식이 지정된 앱의 구매 가격을 가져옵니다.

IsOnSale

앱이 판매 중인지 여부를 나타내는 값을 가져옵니다.

Name

현재 시장에서 앱의 이름을 가져옵니다.

ProductListings

구매할 수 있는 추가 기능(앱에서 내 제품 또는 IAP라고도 함)에 대한 정보를 가져옵니다.

SaleEndDate

앱의 판매 기간 종료 날짜를 가져옵니다.

적용 대상

추가 정보