Delen via


StorePackageLicense Class

Definition

Provides license info for a downloadable content (DLC) package for the current app.

public ref class StorePackageLicense sealed : IClosable
/// [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 StorePackageLicense final : IClosable
[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 StorePackageLicense : System.IDisposable
Public NotInheritable Class StorePackageLicense
Implements IDisposable
Inheritance
Object Platform::Object IInspectable StorePackageLicense
Attributes
Implements

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced in v1.0)

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

Gets a value that indicates whether the license is valid.

Package

Gets the downloadable content (DLC) package that is associated with the license.

Methods

Close()

Closes and releases any resources used by this StorePackageLicense.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReleaseLicense()

Releases the license for the downloadable content (DLC) package.

Events

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

Applies to

See also