CurrentApp Class
현재 응용 프로그램에 대한 라이선스와 목록 정보를 가져오고 응용 프로그램 내 구매를 수행하는 데 사용할 수 있는 메서드와 속성을 정의합니다.
참고 이 개체는 Windows 스토어에서 데이터를 가져오므로 Windows 스토어 개발자 계정이 있어야 하며 응용 프로그램이 Windows 스토어에서 게시되어야 합니다. Windows Store 개발자 계정이 없는 경우 CurrentAppSimulator를 사용하여 이 클래스의 기능을 테스트할 수 있습니다.
구문
var currentApp = Windows.ApplicationModel.Store.CurrentApp;
특성
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.ApplicationModel.Store.ICurrentApp, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
구성원
CurrentApp클래스에는 다음과 같은 유형의 구성원이 있습니다.
메서드
The CurrentApp 클래스 다음 메서드가 있습니다. C#, Visual Basic 및 C++에서는 다음에서 메서드를 상속합니다. Object 클래스.
| 메서드 | 설명 |
|---|---|
| GetAppReceiptAsync | Requests all receipts for this app and any in-app purchases. |
| GetProductReceiptAsync | Requests the receipt for the productId specified. |
| LoadListingInformationAsync | Loads the app's listing information asynchronously. Implements the IAsyncInfo interface. |
| RequestAppPurchaseAsync | Creates the async operation that enables the user to buy a full license for the current app. |
| RequestProductPurchaseAsync | Creates the async operation that will display the UI that is used to make an in-app purchase from the Windows Store. |
속성
CurrentApp클래스 다음 속성이 있습니다.
| 속성 | 액세스 유형 | 설명 |
|---|---|---|
| 읽기 전용 | The ID of the app that is created by the Windows Store. | |
| 읽기 전용 | Gets the license metadata for the current app. | |
| 읽기 전용 | Gets the Uniform Resource Identifier (URI) of the app's listing page in the web catalog of the Windows Store. |
설명
이 개체에는 Windows 저장소의 정보가 포함되어 있습니다.
요구 사항
|
지원되는 최소 클라이언트 | Windows 8 [Windows 스토어 앱 전용] |
|---|---|
|
지원되는 최소 서버 | Windows Server 2012 [Windows 스토어 앱 전용] |
|
지원되는 최소 전화 | Windows Phone 8 |
|
네임스페이스 |
|
|
메타데이터 |
|
