Skip to content
DocsTry Aspire
DocsTry

IAzureKeyVaultResource Methods

InterfaceMethods1 member
Represents a resource that represents an Azure Key Vault.
Gets a secret reference for the specified secret name.
public interface IAzureKeyVaultResource
{
public abstract IAzureKeyVaultSecretReference GetSecret(
string secretName)
{
// ...
}
}
secretNamestringThe name of the secret.
IAzureKeyVaultSecretReferenceA reference to the secret.