Delen via


PlayReadyLicense Class

Definition

Represents the properties of a PlayReady license.

public ref class PlayReadyLicense sealed : IPlayReadyLicense
public ref class PlayReadyLicense sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class PlayReadyLicense final : IPlayReadyLicense
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class PlayReadyLicense final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class PlayReadyLicense : IPlayReadyLicense
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class PlayReadyLicense
Public NotInheritable Class PlayReadyLicense
Implements IPlayReadyLicense
Public NotInheritable Class PlayReadyLicense
Inheritance
Object Platform::Object IInspectable PlayReadyLicense
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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.

Version history

Windows version SDK version Value added
1703 15063 ExpiresInRealTime
1703 15063 InMemoryOnly
1703 15063 SecureStopId
1703 15063 SecurityLevel

Properties

ChainDepth

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

DomainAccountID

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

ExpirationDate

Gets the expiration date of the current license.

ExpireAfterFirstPlay

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

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

Gets the state of the license.

InMemoryOnly

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

SecureStopId

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

SecurityLevel

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

UsableForPlay

Gets whether this license is usable for playback.

Methods

GetKIDAtChainDepth(UInt32)

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

Applies to

See also