Skip to content
Docs Try Aspire
Docs Try

getOrSetSecret

Method
📦 Aspire.Hosting v13.3.0
interface IUserSecretsManager {
// ... omitted for brevity
getOrSetSecret(
resourceBuilder: IResource,
name: string,
value: string): void;
}

Signature

method getOrSetSecret
Gets a secret value if it exists, or sets it to the provided value if it does not
getOrSetSecret(
resourceBuilder: IResource,
name: string,
value: string): void
resourceBuilder IResource
name string
value string

Applies to

This method applies to the following types: