StoreAppLicense.IsDiscLicense Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the current license was acquired from a disc-based installation.
public:
property bool IsDiscLicense { bool get(); };
bool IsDiscLicense();
public bool IsDiscLicense { get; }
var boolean = storeAppLicense.isDiscLicense;
Public ReadOnly Property IsDiscLicense As Boolean
Property Value
bool
True if the current license was acquired from a disc-based installation; otherwise, false.
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Services.Store.StoreContract (introduced in v4.0)
|
Remarks
This property is useful if you are a game developer who wants to determine whether the current customer acquired your game's license by installing it from a disc (rather than acquiring it from a Store purchase or some other process). You might want to use this information if you are building a differentiated monetization experience where customers who acquire your game in different ways will get access to different sets of features.