是否可以为 Windows Phone 8 应用创建应用内产品购买,该应用会在一段时间后自动过期?当使用 Windows Phone 仪表板创建应用内产品时,似乎没有办法设置过期时间(例如 6 个月、15 天等),但另一方面是 ProductLicense-class包含 ExpirationDate -属性(property)。
该属性只是 Windows 8 应用程序的剩余部分,还是有办法为 Windows Phone 8 应用程序内购买设置到期日期?
最佳答案
WP8 不支持 ProductLicense.ExpirationDate。它是为了 Win8 API 兼容性而存在的。
Windows Phone 8
This API is not implemented and will throw an exception if called.
见@ http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.applicationmodel.store.productlicense.expirationdate.aspx
关于in-app-purchase - Windows Phone 应用内产品购买的到期日期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14307014/