Share via


KeyVaultClient.UpdateKeyAsync Method (String, String, String[], KeyAttributes, Dictionary<String, String>, CancellationToken)

 

Asynchronously updates the Key Attributes associated with the specified key.

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

Syntax

public Task<KeyBundle> UpdateKeyAsync(
    string vault,
    string keyName,
    string[] keyOps = null,
    KeyAttributes attributes = null,
    Dictionary<string, string> tags = null,
    CancellationToken cancellationToken = null
)
public:
Task<KeyBundle^>^ UpdateKeyAsync(
    String^ vault,
    String^ keyName,
    array<String^>^ keyOps = null,
    KeyAttributes^ attributes = null,
    Dictionary<String^, String^>^ tags = null,
    CancellationToken cancellationToken = null
)
member UpdateKeyAsync : 
        vault:string *
        keyName:string *
        keyOps:string[] = null *
        attributes:KeyAttributes = null *
        tags:Dictionary<string, string> = null *
        cancellationToken:CancellationToken = null -> Task<KeyBundle>
Public Function UpdateKeyAsync (
    vault As String,
    keyName As String,
    keyOps As String(),
    attributes As KeyAttributes,
    tags As Dictionary(Of String, String),
    cancellationToken As CancellationToken
) As Task(Of KeyBundle)

Parameters

Return Value

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

The updated key.

See Also

UpdateKeyAsync Overload
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top