다음을 통해 공유


ContentKeyPolicyOption Constructor

Definition

Initializes a new instance of ContentKeyPolicyOption.

public ContentKeyPolicyOption (Azure.ResourceManager.Media.Models.ContentKeyPolicyConfiguration configuration, Azure.ResourceManager.Media.Models.ContentKeyPolicyRestriction restriction);
new Azure.ResourceManager.Media.Models.ContentKeyPolicyOption : Azure.ResourceManager.Media.Models.ContentKeyPolicyConfiguration * Azure.ResourceManager.Media.Models.ContentKeyPolicyRestriction -> Azure.ResourceManager.Media.Models.ContentKeyPolicyOption
Public Sub New (configuration As ContentKeyPolicyConfiguration, restriction As ContentKeyPolicyRestriction)

Parameters

configuration
ContentKeyPolicyConfiguration

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.

restriction
ContentKeyPolicyRestriction

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.

Exceptions

configuration or restriction is null.

Applies to