KeyVaultClientExtensions.ImportKeyAsync 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.
Overloads
ImportKeyAsync(IKeyVaultClient, String, String, KeyBundle, Nullable<Boolean>, CancellationToken)
- Source:
- KeyVaultClientExtensions.cs
public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle> ImportKeyAsync(this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string keyName, Microsoft.Azure.KeyVault.Models.KeyBundle keyBundle, bool? importToHardware = default, System.Threading.CancellationToken cancellationToken = default);
static member ImportKeyAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * Microsoft.Azure.KeyVault.Models.KeyBundle * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle>
<Extension()>
Public Function ImportKeyAsync (operations As IKeyVaultClient, vaultBaseUrl As String, keyName As String, keyBundle As KeyBundle, Optional importToHardware As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyBundle)
Parameters
- operations
- IKeyVaultClient
- vaultBaseUrl
- System.String
- keyName
- System.String
- keyBundle
- KeyBundle
- importToHardware
- System.Nullable<System.Boolean>
- cancellationToken
- System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<KeyBundle>
Applies to
ImportKeyAsync(IKeyVaultClient, String, String, JsonWebKey, Nullable<Boolean>, KeyAttributes, IDictionary<String,String>, CancellationToken)
- Source:
- KeyVaultClientExtensions.cs
public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle> ImportKeyAsync(this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string keyName, Microsoft.Azure.KeyVault.WebKey.JsonWebKey key, bool? hsm = default, Microsoft.Azure.KeyVault.Models.KeyAttributes keyAttributes = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Threading.CancellationToken cancellationToken = default);
static member ImportKeyAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * Microsoft.Azure.KeyVault.WebKey.JsonWebKey * Nullable<bool> * Microsoft.Azure.KeyVault.Models.KeyAttributes * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle>
<Extension()>
Public Function ImportKeyAsync (operations As IKeyVaultClient, vaultBaseUrl As String, keyName As String, key As JsonWebKey, Optional hsm As Nullable(Of Boolean) = Nothing, Optional keyAttributes As KeyAttributes = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyBundle)
Parameters
- operations
- IKeyVaultClient
- vaultBaseUrl
- System.String
- keyName
- System.String
- key
- JsonWebKey
- hsm
- System.Nullable<System.Boolean>
- keyAttributes
- KeyAttributes
- tags
- System.Collections.Generic.IDictionary<System.String,System.String>
- cancellationToken
- System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<KeyBundle>