Share via


KeyVaultClient.ImportKeyAsync Method (String, String, KeyBundle, Nullable<Boolean>, CancellationToken)

 

Asynchronously imports a key into the specified vault.

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

Syntax

public Task<KeyBundle> ImportKeyAsync(
    string vault,
    string keyName,
    KeyBundle keyBundle,
    Nullable<bool> importToHardware = null,
    CancellationToken cancellationToken = null
)
public:
Task<KeyBundle^>^ ImportKeyAsync(
    String^ vault,
    String^ keyName,
    KeyBundle^ keyBundle,
    Nullable<bool> importToHardware = null,
    CancellationToken cancellationToken = null
)
member ImportKeyAsync : 
        vault:string *
        keyName:string *
        keyBundle:KeyBundle *
        importToHardware:Nullable<bool> = null *
        cancellationToken:CancellationToken = null -> Task<KeyBundle>
Public Function ImportKeyAsync (
    vault As String,
    keyName As String,
    keyBundle As KeyBundle,
    importToHardware As Nullable(Of Boolean),
    cancellationToken As CancellationToken
) As Task(Of KeyBundle)

Parameters

Return Value

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

The imported key bundle to the vault.

See Also

KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top