[UWP]获得试用期 [英] [UWP]Get trial period
问题描述
这是否已修复。 已经差不多一年了,我无法在试用期内获得剩余的日期。
private StoreContext storeContext = null;
public static StoreAppLicense AppLicense = null;
public static int DaysRemainingInTrialPeriod;
public static string LicenseMode;
{
if(storeContext == null)
{
storeContext = StoreContext.GetDefault();
//如果您的应用是使用桌面网桥的桌面应用,则为
   //可能需要额外的代码来配置StoreContext对象。
//有关详情,请参阅https://aka.ms/storecontext-for-desktop。
  ; }
此问题是否已解决? 我看不到它是否正常工作。
private StoreContext storeContext = null;
public static StoreAppLicense AppLicense = null;
public static int DaysRemainingInTrialPeriod;
公共静态字符串LicenseMode;
private async void InitializeLicense()
{
if(storeContext == null)
{
storeContext = StoreContext.GetDefault();
//如果您的应用是使用桌面网桥的桌面应用,则为
   //可能需要额外的代码来配置StoreContext对象。
//有关详情,请参阅https://aka.ms/storecontext-for-desktop。
  ; }
Has this been fixed. It has been almost a year and I cannot get the days remaining in a trial period.
private StoreContext storeContext = null;
public static StoreAppLicense AppLicense = null;
public static int DaysRemainingInTrialPeriod;
public static string LicenseMode;private async void InitializeLicense()
{
if (storeContext == null)
{
storeContext = StoreContext.GetDefault();
// If your app is a desktop app that uses the Desktop Bridge, you
// may need additional code to configure the StoreContext object.
// For more info, see https://aka.ms/storecontext-for-desktop.
}解决方案Has this issue been resolved? I can't see to get it working.
private StoreContext storeContext = null;
public static StoreAppLicense AppLicense = null;
public static int DaysRemainingInTrialPeriod;
public static string LicenseMode;private async void InitializeLicense()
{
if (storeContext == null)
{
storeContext = StoreContext.GetDefault();
// If your app is a desktop app that uses the Desktop Bridge, you
// may need additional code to configure the StoreContext object.
// For more info, see https://aka.ms/storecontext-for-desktop.
}
这篇关于[UWP]获得试用期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文