KeyReleasePolicy(BinaryData) Constructor
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.
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));