KeyVaultClient.DeleteKeyAsync Method (String, String, CancellationToken)
Asynchronously deletes the specified key.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public Task<KeyBundle> DeleteKeyAsync(
string vault,
string keyName,
CancellationToken cancellationToken = null
)
public:
Task<KeyBundle^>^ DeleteKeyAsync(
String^ vault,
String^ keyName,
CancellationToken cancellationToken = null
)
member DeleteKeyAsync :
vault:string *
keyName:string *
cancellationToken:CancellationToken = null -> Task<KeyBundle>
Public Function DeleteKeyAsync (
vault As String,
keyName As String,
cancellationToken As CancellationToken
) As Task(Of KeyBundle)
Parameters
vault
Type: System.StringThe vault name, e.g. https://myvault.vault.azure.net.
keyName
Type: System.StringThe key name.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<KeyBundle>
The public part of the deleted key.
See Also
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top