Skip to content
Docs Try Aspire

IHostEnvironment.isEnvironment

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

Signature

method isEnvironment
Checks if the environment matches the specified name
isEnvironment(environmentName: string): boolean
environmentName string
boolean

Defined on

This method is defined on the following type: