Share via


IAzureKeyVaultResource.GetSecret(String) Method

Definition

Gets a secret reference for the specified secret name.

public Aspire.Hosting.Azure.IAzureKeyVaultSecretReference GetSecret(string secretName);
abstract member GetSecret : string -> Aspire.Hosting.Azure.IAzureKeyVaultSecretReference
Public Function GetSecret (secretName As String) As IAzureKeyVaultSecretReference

Parameters

secretName
String

The name of the secret.

Returns

A reference to the secret.

Applies to