KeyVaultClient.EncryptDataWithVersionAsync Method

Definition

Encrypt data with key version

public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptOutput> EncryptDataWithVersionAsync(string nameOfTheKey, string versionOfTheKey, Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptInput input, System.Threading.CancellationToken cancellationToken = default);
abstract member EncryptDataWithVersionAsync : string * string * Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptOutput>
override this.EncryptDataWithVersionAsync : string * string * Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptOutput>
Public Overridable Function EncryptDataWithVersionAsync (nameOfTheKey As String, versionOfTheKey As String, input As KeyEncryptInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyEncryptOutput)

Parameters

nameOfTheKey
String

Name of the key

versionOfTheKey
String

Version of the key

input
KeyEncryptInput

The request body.

cancellationToken
CancellationToken

Cancellation token.

Returns

The Encrypt data with key version response.

Remarks

Encrypt data using a specific version of a key.

Applies to