KeyReleasePolicy(BinaryData) Constructor

Definition

Initializes a new instance of the KeyReleasePolicy class.

public KeyReleasePolicy (BinaryData encodedPolicy);
new Azure.Security.KeyVault.Keys.KeyReleasePolicy : BinaryData -> Azure.Security.KeyVault.Keys.KeyReleasePolicy
Public Sub New (encodedPolicy As BinaryData)

Parameters

encodedPolicy
BinaryData

The policy rules under which the key can be released encoded based on the ContentType.

Exceptions

encodedPolicy is null.

Examples

The encodedPolicy can be easily read from a file:

using FileStream file = File.OpenRead("policy.dat");
KeyReleasePolicy policy = new KeyReleasePolicy(BinaryData.FromStream(file));

Applies to