StoreAppLicense.AddOnLicenses 属性

定义

获取用户有权使用的持久加载项的许可证集合。 此属性不包括易耗型加载项的许可证。

public:
 property IMapView<Platform::String ^, StoreLicense ^> ^ AddOnLicenses { IMapView<Platform::String ^, StoreLicense ^> ^ get(); };
IMapView<winrt::hstring, StoreLicense const&> AddOnLicenses();
public IReadOnlyDictionary<string,StoreLicense> AddOnLicenses { get; }
var iMapView = storeAppLicense.addOnLicenses;
Public ReadOnly Property AddOnLicenses As IReadOnlyDictionary(Of String, StoreLicense)

属性值

键和值对的映射,其中每个键是 Microsoft Store 目录中加载项 SKU 的应用商店 ID,每个值都是一个 StoreLicense 对象,其中包含加载项的许可证信息。

注解

此集合包含当前有效的持久加载项许可证。 当许可证过期或不再有效时,该许可证将在此集合中不再可用。

适用于