isEnvironment

Method
📦 Aspire.Hosting v17.0.0
interface IHostEnvironment {
// ... omitted for brevity
isEnvironment(environmentName: string): boolean;
}

Signature

methodisEnvironment
Checks if the environment matches the specified name.
isEnvironment(environmentName: string): boolean
environmentNamestringThe environment name to compare against.
boolean

Applies to

This method applies to the following types: