LicenseInformation.ProductLicenses 属性

定义

获取用户当前有权访问的应用内产品的许可证关联列表。

public:
 property IMapView<Platform::String ^, ProductLicense ^> ^ ProductLicenses { IMapView<Platform::String ^, ProductLicense ^> ^ get(); };
IMapView<winrt::hstring, ProductLicense const&> ProductLicenses();
public IReadOnlyDictionary<string,ProductLicense> ProductLicenses { get; }
var iMapView = licenseInformation.productLicenses;
Public ReadOnly Property ProductLicenses As IReadOnlyDictionary(Of String, ProductLicense)

属性值

功能许可证的关联列表。

注解

若要确定用户是否有权使用应用内产品,请使用 ProductLicense 对象的 IsActive 属性。

重要

返回的 ProductLicense 对象列表将始终表示用户当前有权 (的所有应用内产品,其中 IsActive = true) 。 但是,此列表可能也可能包含也可能不包含用户当前无权 (的产品的 ProductLicense 对象,其中 IsActive = false) 。

适用于