KeyVaultClient.GetSecretAsync Method (String, CancellationToken)
Asynchronously gets a secret.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public Task<Secret> GetSecretAsync(
string secretIdentifier,
CancellationToken cancellationToken = null
)
public:
Task<Secret^>^ GetSecretAsync(
String^ secretIdentifier,
CancellationToken cancellationToken = null
)
member GetSecretAsync :
secretIdentifier:string *
cancellationToken:CancellationToken = null -> Task<Secret>
Public Function GetSecretAsync (
secretIdentifier As String,
cancellationToken As CancellationToken
) As Task(Of Secret)
Parameters
secretIdentifier
Type: System.StringThe URL for the secret.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<Secret>
A response message containing the secret.
See Also
GetSecretAsync Overload
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top