LicenseManager.RefreshLicensesAsync(LicenseRefreshOption) 方法

定义

刷新当前设备上的应用许可证的许可证信息。

public:
 static IAsyncAction ^ RefreshLicensesAsync(LicenseRefreshOption refreshOption);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction RefreshLicensesAsync(LicenseRefreshOption const& refreshOption);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction RefreshLicensesAsync(LicenseRefreshOption refreshOption);
function refreshLicensesAsync(refreshOption)
Public Shared Function RefreshLicensesAsync (refreshOption As LicenseRefreshOption) As IAsyncAction

参数

refreshOption
LicenseRefreshOption

一个 LicenseRefreshOption,指示是刷新设备上的所有应用许可证,还是仅刷新当前正在运行的应用的许可证。

返回

表示异步操作的 对象。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
storeLicenseManagement

适用于