Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.83 KB

File metadata and controls

34 lines (23 loc) · 1.83 KB
-api-id P:Windows.Services.Store.StoreAppLicense.TrialTimeRemaining
-api-type winrt property

Windows.Services.Store.StoreAppLicense.TrialTimeRemaining

-description

Gets the remaining time for the trial that is associated with this app license.

-property-value

The remaining time for the trial that is associated with this app license. For usage-limited trials, this property may not return meaningful values since these trials expire based on usage rather than time.

-remarks

This property is primarily intended for time-limited trials where the trial expires after a specific time period.

For usage-limited trials configured in Partner Center, this property may not provide meaningful information since these trials expire based on usage (such as number of features used, content accessed, or other usage metrics) rather than time. For usage-limited trials, the ExpirationDate property returns December 31, 9999, and this TrialTimeRemaining property may return a very large value or other non-intuitive results.

To properly handle trial logic for different trial types:

  • For time-limited trials: Use this property to get the actual remaining time
  • For usage-limited trials: Check the IsTrial property and implement your own usage tracking mechanism based on your app's specific trial limitations

Usage-limited trials are currently available only to some developer accounts in Xbox managed partner programs.

Note

Be aware that trial behavior may vary between testing environments and production deployments from the Microsoft Store. Always test your trial logic thoroughly in both environments.

-examples

-see-also