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) 。

適用於