Skip to content
Docs Try Aspire

isEnvironment

Function
📦 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

Applies to

This function is an extension method on the following types: