From d6ec7ca8ad2f08ec3306bd3a9cc9acb6e208bfaa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 Aug 2025 16:35:53 +0000 Subject: [PATCH 1/2] Initial plan From 3800f30829de3c838849b6edd687fbd7f802ed0f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 Aug 2025 16:44:47 +0000 Subject: [PATCH 2/2] Add ERROR_NOT_FOUND exception documentation to GetAppLicenseAsync Co-authored-by: GrantMeStrength <1928855+GrantMeStrength@users.noreply.github.com> --- .../storecontext_getapplicenseasync_1472711008.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/windows.services.store/storecontext_getapplicenseasync_1472711008.md b/windows.services.store/storecontext_getapplicenseasync_1472711008.md index f70be8db68..f0517b4102 100644 --- a/windows.services.store/storecontext_getapplicenseasync_1472711008.md +++ b/windows.services.store/storecontext_getapplicenseasync_1472711008.md @@ -15,6 +15,12 @@ Gets license info for the current app, including licenses for add-ons for the cu ## -returns An asynchronous operation that, on successful completion, returns a [StoreAppLicense](storeapplicense.md) object that contains license info for the current app, including add-on licenses. +## -exceptions + +### T:System.Runtime.InteropServices.COMException + +If the **ErrorCode** property of the exception has the value 0x80070490 (ERROR_NOT_FOUND), this indicates that the app license could not be found or retrieved. + ## -remarks The [StoreAppLicense](storeapplicense.md) object returned by this method provides access to licenses for add-ons and other info, such as whether the license is active. If this method is called while the device is offline, it returns the cached value of the current licenses on the device. The [OfflineLicensesChanged](storecontext_offlinelicenseschanged.md) event is raised when the status of the app's license changes.