Delen via


ContentKeyPolicyPlayReadyLicense Class

Definition

The PlayReady license.

public class ContentKeyPolicyPlayReadyLicense : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.ContentKeyPolicyPlayReadyLicense>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.ContentKeyPolicyPlayReadyLicense>
public class ContentKeyPolicyPlayReadyLicense
type ContentKeyPolicyPlayReadyLicense = class
    interface IJsonModel<ContentKeyPolicyPlayReadyLicense>
    interface IPersistableModel<ContentKeyPolicyPlayReadyLicense>
type ContentKeyPolicyPlayReadyLicense = class
Public Class ContentKeyPolicyPlayReadyLicense
Implements IJsonModel(Of ContentKeyPolicyPlayReadyLicense), IPersistableModel(Of ContentKeyPolicyPlayReadyLicense)
Public Class ContentKeyPolicyPlayReadyLicense
Inheritance
ContentKeyPolicyPlayReadyLicense
Implements

Constructors

ContentKeyPolicyPlayReadyLicense(Boolean, ContentKeyPolicyPlayReadyLicenseType, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyPlayReadyContentType)

Initializes a new instance of ContentKeyPolicyPlayReadyLicense.

Properties

AllowTestDevices

A flag indicating whether test devices can use the license.

BeginOn

The begin date of license.

ContentKeyLocation

The content key location. Please note ContentKeyPolicyPlayReadyContentKeyLocation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader and ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

ContentType

The PlayReady content type.

ExpireOn

The expiration date of license.

GracePeriod

The grace period of license.

LicenseType

The license type.

PlayRight

The license PlayRight.

RelativeBeginDate

The relative begin date of license.

RelativeExpirationDate

The relative expiration date of license.

SecurityLevel

The security level.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ContentKeyPolicyPlayReadyLicense>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContentKeyPolicyPlayReadyLicense>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContentKeyPolicyPlayReadyLicense>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContentKeyPolicyPlayReadyLicense>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContentKeyPolicyPlayReadyLicense>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to