KeyVaultClient.UpdateKeyAsync Method (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 keyIdentifier,
string[] keyOps = null,
KeyAttributes attributes = null,
Dictionary<string, string> tags = null,
CancellationToken cancellationToken = null
)
public:
Task<KeyBundle^>^ UpdateKeyAsync(
String^ keyIdentifier,
array<String^>^ keyOps = null,
KeyAttributes^ attributes = null,
Dictionary<String^, String^>^ tags = null,
CancellationToken cancellationToken = null
)
member UpdateKeyAsync :
keyIdentifier:string *
keyOps:string[] = null *
attributes:KeyAttributes = null *
tags:Dictionary<string, string> = null *
cancellationToken:CancellationToken = null -> Task<KeyBundle>
Public Function UpdateKeyAsync (
keyIdentifier As String,
keyOps As String(),
attributes As KeyAttributes,
tags As Dictionary(Of String, String),
cancellationToken As CancellationToken
) As Task(Of KeyBundle)
Parameters
keyIdentifier
Type: System.StringThe key identifier.
keyOps
Type: System.String[]The Json web key operations. For more information, see JsonWebKeyOperation.
attributes
Type: Microsoft.Azure.KeyVault.KeyAttributesThe new attributes for the key. For more information on key attributes, see KeyAttributes.
tags
Type: System.Collections.Generic.Dictionary<String, String>The application-specific metadata in the form of key-value pairs.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<KeyBundle>
The updated key.
See Also
UpdateKeyAsync Overload
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top