StorePackageLicense
StorePackageLicense
StorePackageLicense
StorePackageLicense
Class
Definition
Provides license info for a downloadable content (DLC) package for the current app.
public : sealed class StorePackageLicense : IClosable, IStorePackageLicensepublic sealed class StorePackageLicense : IDisposable, IStorePackageLicensePublic NotInheritable Class StorePackageLicense Implements IDisposable, IStorePackageLicense// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Services.Store.StoreContract (introduced v1)
|
Remarks
The StoreAcquireLicenseResult.StorePackageLicense property returns an object of this type.> [!NOTE]
Downloadable content (DLC) packages are not available to all developer accounts.
Properties
IsValid IsValid IsValid IsValid
Gets a value that indicates whether the license is valid.
public : PlatForm::Boolean IsValid { get; }public bool IsValid { get; }Public ReadOnly Property IsValid As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the license is valid; otherwise, false.
Package Package Package Package
Gets the downloadable content (DLC) package that is associated with the license.
public : Package Package { get; }public Package Package { get; }Public ReadOnly Property Package As Package// You can use this property in JavaScript.
An object that represents the DLC package that is associated with the license.
Remarks
Note
Downloadable content (DLC) packages are not available to all developer accounts.
Methods
Close() Close() Close() Close()
Closes and releases any resources used by this StorePackageLicense.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
Dispose() Dispose() Dispose() Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()
ReleaseLicense() ReleaseLicense() ReleaseLicense() ReleaseLicense()
Releases the license for the downloadable content (DLC) package.
public : void ReleaseLicense()public void ReleaseLicense()Public Function ReleaseLicense() As void// You can use this method in JavaScript.
Remarks
Note
Downloadable content (DLC) packages are not available to all developer accounts.
Events
LicenseLost LicenseLost LicenseLost LicenseLost
Raised when user no longer has rights to the license on the current device (for example, the user has acquired the license on a different device).
public : event TypedEventHandler LicenseLost<StorePackageLicense, object>public event TypedEventHandler LicenseLost<StorePackageLicense, object>Public Event LicenseLost<StorePackageLicense, object>// You can use this event in JavaScript.