KeyVaultClient.BackupKeyAsync Method (String, String, CancellationToken)
Asynchronously requests that a backup of the specified key be downloaded to the client.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public Task<byte[]> BackupKeyAsync(
string vault,
string keyName,
CancellationToken cancellationToken = null
)
public:
Task<array<unsigned char>^>^ BackupKeyAsync(
String^ vault,
String^ keyName,
CancellationToken cancellationToken = null
)
member BackupKeyAsync :
vault:string *
keyName:string *
cancellationToken:CancellationToken = null -> Task<byte[]>
Public Function BackupKeyAsync (
vault As String,
keyName As String,
cancellationToken As CancellationToken
) As Task(Of Byte())
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<Byte[]>
The backup blob containing the backed up key.
See Also
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top