LicenseManager Kelas

Definisi

Menyediakan anggota untuk mengelola info lisensi untuk aplikasi.

public ref class LicenseManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LicenseManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class LicenseManager
Public Class LicenseManager
Warisan
Object Platform::Object IInspectable LicenseManager
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Anniversary Edition (diperkenalkan dalam 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v3.0)
Kemampuan aplikasi
storeLicenseManagement

Keterangan

Catatan

Kelas ini memerlukan kemampuan storeLicenseManagementterbatas.

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1703 15063 RefreshLicensesAsync

Metode

AddLicenseAsync(IBuffer)

Menginstal lisensi aplikasi yang ditentukan.

GetSatisfactionInfosAsync(IIterable<String>, IIterable<String>)

Mendapatkan info pemberian hak lisensi untuk produk yang ditentukan.

RefreshLicensesAsync(LicenseRefreshOption)

Merefresh info lisensi untuk lisensi aplikasi di perangkat saat ini.

Berlaku untuk