StoreAppLicense クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在のアプリのライセンス情報 (アプリによって提供される製品のライセンスを含む) を提供します。
public ref class StoreAppLicense sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StoreAppLicense final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StoreAppLicense
Public NotInheritable Class StoreAppLicense
- 継承
- 属性
Windows の要件
| 要件 | 説明 |
|---|---|
| デバイス ファミリ |
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
|
| API contract |
Windows.Services.Store.StoreContract (v1.0 で導入)
|
注釈
StoreContext.GetAppLicenseAsync メソッドは、この型のオブジェクトを返します。
バージョン履歴
| Windows のバージョン | SDK のバージョン | 付加価値 |
|---|---|---|
| 1809 | 17763 | IsDiscLicense |
プロパティ
| Name | 説明 |
|---|---|
| AddOnLicenses |
ユーザーが使用する権利を持つ永続的なアドオンのライセンスのコレクションを取得します。 このプロパティには、消耗品アドオンのライセンスは含まれません。 |
| ExpirationDate |
アプリ ライセンスの有効期限の日付と時刻を取得します。 |
| ExtendedJsonData |
完全なライセンス データを JSON 形式で取得します。 |
| IsActive |
ライセンスが有効かどうかを示す値を取得し、現在のユーザーにアプリを使用する権利を提供します。 |
| IsDiscLicense |
ディスク ベースのインストールから現在のライセンスが取得されたかどうかを示す値を取得します。 |
| IsTrial |
ライセンスが試用版ライセンスであるかどうかを示す値を取得します。 |
| IsTrialOwnedByThisUser |
現在のユーザーがこのアプリ ライセンスに関連付けられている使用量制限付き試用版の権利を持っているかどうかを示す値を取得します。 |
| SkuStoreId |
Microsoft Store カタログから、ライセンスされたアプリ SKU のストア ID を取得します。 |
| TrialTimeRemaining |
このアプリ ライセンスに関連付けられている使用量制限付き試用版の残り時間を取得します。 |
| TrialUniqueId |
現在のユーザーと、このアプリ ライセンスに関連付けられている使用量制限付き試用版の組み合わせを識別する一意の ID を取得します。 |