Delen via


KeyClient.CreateEcKeyAsync(CreateEcKeyOptions, CancellationToken) Method

Definition

Creates and stores a new Elliptic Curve key in Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. This operation requires the keys/create permission.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>> CreateEcKeyAsync (Azure.Security.KeyVault.Keys.CreateEcKeyOptions ecKeyOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateEcKeyAsync : Azure.Security.KeyVault.Keys.CreateEcKeyOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>>
override this.CreateEcKeyAsync : Azure.Security.KeyVault.Keys.CreateEcKeyOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>>
Public Overridable Function CreateEcKeyAsync (ecKeyOptions As CreateEcKeyOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KeyVaultKey))

Parameters

ecKeyOptions
CreateEcKeyOptions

The key options object containing information about the Elliptic Curve key being created.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Exceptions

ecKeyOptions is null.

The server returned an error. See Message for details returned from the server.

Applies to