Skip to content
Docs Try Aspire
Docs Try

isEnvironment

Method
📦 Aspire.Hosting v13.3.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

Applies to

This method applies to the following types: