KeyVaultClient.RestoreKeyAsync Method (String, Byte[], CancellationToken)

 

Asynchronously restores the backup key in to a vault.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)

Syntax

public Task<KeyBundle> RestoreKeyAsync(
    string vault,
    byte[] keyBundleBackup,
    CancellationToken cancellationToken = null
)
public:
Task<KeyBundle^>^ RestoreKeyAsync(
    String^ vault,
    array<unsigned char>^ keyBundleBackup,
    CancellationToken cancellationToken = null
)
member RestoreKeyAsync : 
        vault:string *
        keyBundleBackup:byte[] *
        cancellationToken:CancellationToken = null -> Task<KeyBundle>
Public Function RestoreKeyAsync (
    vault As String,
    keyBundleBackup As Byte(),
    cancellationToken As CancellationToken
) As Task(Of KeyBundle)

Parameters

  • keyBundleBackup
    Type: System.Byte[]

    The backup blob associated with a key bundle.

Return Value

Type: System.Threading.Tasks.Task<KeyBundle>

Restored key bundle in the vault.

See Also

KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top