KeyVaultClient.EncryptDataAsync Method
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.
Encrypt data with key
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptOutput> EncryptDataAsync(string nameOfTheKey, Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptInput input, System.Threading.CancellationToken cancellationToken = default);
abstract member EncryptDataAsync : string * Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptOutput>
override this.EncryptDataAsync : string * Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyEncryptOutput>
Public Overridable Function EncryptDataAsync (nameOfTheKey As String, input As KeyEncryptInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyEncryptOutput)
Parameters
- nameOfTheKey
- String
Name of the key
- input
- KeyEncryptInput
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Encrypt data with key response.
Remarks
Encrypt data using the latest version of a key.