PlayReadyLicense PlayReadyLicense PlayReadyLicense PlayReadyLicense PlayReadyLicense Class


Represents the properties of a PlayReady license.

public : sealed class PlayReadyLicense : IPlayReadyLicense, IPlayReadyLicense2
struct winrt::Windows::Media::Protection::PlayReady::PlayReadyLicense : IPlayReadyLicense, IPlayReadyLicense2
public sealed class PlayReadyLicense : IPlayReadyLicense, IPlayReadyLicense2
Public NotInheritable Class PlayReadyLicense Implements IPlayReadyLicense, IPlayReadyLicense2
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


This class is used to query license metadata. It could represent a single license or an entire chain of licenses depending on how the license enumeration was performed.


ChainDepth ChainDepth ChainDepth ChainDepth ChainDepth

Gets the chain depth of the license chain represented by the current PlayReadyLicense class.

DomainAccountID DomainAccountID DomainAccountID DomainAccountID DomainAccountID

Gets the domain account identifier to which this license is bound.

ExpirationDate ExpirationDate ExpirationDate ExpirationDate ExpirationDate

Gets the expiration date of the current license.

ExpireAfterFirstPlay ExpireAfterFirstPlay ExpireAfterFirstPlay ExpireAfterFirstPlay ExpireAfterFirstPlay

Gets the amount of time, in seconds, before the current license expires after the media is first played.

ExpiresInRealTime ExpiresInRealTime ExpiresInRealTime ExpiresInRealTime ExpiresInRealTime

Gets a value that indicates if the license can expire in the middle of playback or if only expires when attempting a fresh playback.

FullyEvaluated FullyEvaluated FullyEvaluated FullyEvaluated FullyEvaluated

Gets the state of the license.

InMemoryOnly InMemoryOnly InMemoryOnly InMemoryOnly InMemoryOnly

Gets a value that indicates if the license is in-memory-only.

SecureStopId SecureStopId SecureStopId SecureStopId SecureStopId

Gets the unique identifier of the certificate for the service that handles the server-side of the SecureStop protocol.

SecurityLevel SecurityLevel SecurityLevel SecurityLevel SecurityLevel

Gets a value that indicates the security level of the license.

UsableForPlay UsableForPlay UsableForPlay UsableForPlay UsableForPlay

Gets whether this license is usable for playback.


GetKIDAtChainDepth(UInt32) GetKIDAtChainDepth(UInt32) GetKIDAtChainDepth(UInt32) GetKIDAtChainDepth(UInt32) GetKIDAtChainDepth(UInt32)

Gets the key identifier (KID) of the license at the specified chain depth.

See Also