StoreCanAcquireLicenseResult StoreCanAcquireLicenseResult StoreCanAcquireLicenseResult StoreCanAcquireLicenseResult StoreCanAcquireLicenseResult Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Provides response data for a request to determine whether a license can be acquired for a downloadable content (DLC) add-on.

public : sealed class StoreCanAcquireLicenseResult : IStoreCanAcquireLicenseResult
struct winrt::Windows::Services::Store::StoreCanAcquireLicenseResult : IStoreCanAcquireLicenseResult
public sealed class StoreCanAcquireLicenseResult : IStoreCanAcquireLicenseResult
Public NotInheritable Class StoreCanAcquireLicenseResult Implements IStoreCanAcquireLicenseResult
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Services.Store.StoreContract (introduced v3)

Remarks

Note

Downloadable content (DLC) packages are not available to all developer accounts.

Properties

ExtendedError ExtendedError ExtendedError ExtendedError ExtendedError

Prerelease. Gets the error code for the request, if the operation encountered an error.

public : HResult ExtendedError { get; }
HResult ExtendedError();
public Exception ExtendedError { get; }
Public ReadOnly Property ExtendedError As Exception
var exception = storeCanAcquireLicenseResult.extendedError;
Value
Exception Exception Exception

The error code for the request.

Remarks

If the ErrorCode property of the exception has the value 0x80070005 (E_ACCESSDENIED), this indicates that the specified downloadable content (DLC) add-on is not sellable by the current app.

See Also

LicensableSku LicensableSku LicensableSku LicensableSku LicensableSku

Prerelease. Gets the SKU Store ID of the downloadable content (DLC) add-on, if a license can be acquired for the add-on for the current user.

public : Platform::String LicensableSku { get; }
winrt::hstring LicensableSku();
public string LicensableSku { get; }
Public ReadOnly Property LicensableSku As string
var string = storeCanAcquireLicenseResult.licensableSku;
Value
string string string

The SKU Store ID of the downloadable content (DLC) add-on, if a license can be acquired for the add-on for the current user.

Status Status Status Status Status

Prerelease. Gets the license status for the downloadable content (DLC) add-on.

public : StoreCanLicenseStatus Status { get; }
StoreCanLicenseStatus Status();
public StoreCanLicenseStatus Status { get; }
Public ReadOnly Property Status As StoreCanLicenseStatus
var storeCanLicenseStatus = storeCanAcquireLicenseResult.status;
Value
StoreCanLicenseStatus StoreCanLicenseStatus StoreCanLicenseStatus

The license status for the downloadable content (DLC) add-on.