KeyClient.CreateEcKey(CreateEcKeyOptions, CancellationToken) 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.
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 Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey> CreateEcKey (Azure.Security.KeyVault.Keys.CreateEcKeyOptions ecKeyOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateEcKey : Azure.Security.KeyVault.Keys.CreateEcKeyOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>
override this.CreateEcKey : Azure.Security.KeyVault.Keys.CreateEcKeyOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>
Public Overridable Function CreateEcKey (ecKeyOptions As CreateEcKeyOptions, Optional cancellationToken As CancellationToken = Nothing) As 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
Azure SDK for .NET