Skip to content
DocsTry Aspire
DocsTry

isEnvironment

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

Signature

methodisEnvironment
Checks if the environment matches the specified name.
isEnvironment(environmentName: string): boolean
environmentNamestring
boolean

Applies to

This method applies to the following types: