ContentKeyPolicyOption Class
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.
Represents a policy option.
public class ContentKeyPolicyOption : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.ContentKeyPolicyOption>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.ContentKeyPolicyOption>
public class ContentKeyPolicyOption
type ContentKeyPolicyOption = class
interface IJsonModel<ContentKeyPolicyOption>
interface IPersistableModel<ContentKeyPolicyOption>
type ContentKeyPolicyOption = class
Public Class ContentKeyPolicyOption
Implements IJsonModel(Of ContentKeyPolicyOption), IPersistableModel(Of ContentKeyPolicyOption)
Public Class ContentKeyPolicyOption
- Inheritance
-
ContentKeyPolicyOption
- Implements
Constructors
ContentKeyPolicyOption(ContentKeyPolicyConfiguration, ContentKeyPolicyRestriction) |
Initializes a new instance of ContentKeyPolicyOption. |
Properties
Configuration |
The key delivery configuration. Please note ContentKeyPolicyConfiguration 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 ContentKeyPolicyClearKeyConfiguration, ContentKeyPolicyFairPlayConfiguration, ContentKeyPolicyPlayReadyConfiguration, ContentKeyPolicyUnknownConfiguration and ContentKeyPolicyWidevineConfiguration. |
Name |
The Policy Option description. |
PolicyOptionId |
The legacy Policy Option ID. |
Restriction |
The requirements that must be met to deliver keys with this configuration Please note ContentKeyPolicyRestriction 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 ContentKeyPolicyOpenRestriction, ContentKeyPolicyTokenRestriction and ContentKeyPolicyUnknownRestriction. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<ContentKeyPolicyOption>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ContentKeyPolicyOption>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ContentKeyPolicyOption>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ContentKeyPolicyOption>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ContentKeyPolicyOption>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |