Share via


KeyVaultClient.UpdateSecretAsync Method (String, String, SecretAttributes, Dictionary<String, String>, CancellationToken)

 

Asynchronously updates the attributes associated with the specified secret.

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

Syntax

public Task<Secret> UpdateSecretAsync(
    string secretIdentifier,
    string contentType = null,
    SecretAttributes secretAttributes = null,
    Dictionary<string, string> tags = null,
    CancellationToken cancellationToken = null
)
public:
Task<Secret^>^ UpdateSecretAsync(
    String^ secretIdentifier,
    String^ contentType = null,
    SecretAttributes^ secretAttributes = null,
    Dictionary<String^, String^>^ tags = null,
    CancellationToken cancellationToken = null
)
member UpdateSecretAsync : 
        secretIdentifier:string *
        contentType:string = null *
        secretAttributes:SecretAttributes = null *
        tags:Dictionary<string, string> = null *
        cancellationToken:CancellationToken = null -> Task<Secret>
Public Function UpdateSecretAsync (
    secretIdentifier As String,
    contentType As String,
    secretAttributes As SecretAttributes,
    tags As Dictionary(Of String, String),
    cancellationToken As CancellationToken
) As Task(Of Secret)

Parameters

  • contentType
    Type: System.String

    The type of the secret value such as password.

Return Value

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

A response message containing the updated secret.

See Also

UpdateSecretAsync Overload
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top