HostEnvironmentEnvExtensions.IsDevelopment(IHostEnvironment) Metod

Definition

Kontrollerar om det aktuella värdmiljönamnet är Development.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDevelopment(Microsoft::Extensions::Hosting::IHostEnvironment ^ hostEnvironment);
public static bool IsDevelopment(this Microsoft.Extensions.Hosting.IHostEnvironment hostEnvironment);
static member IsDevelopment : Microsoft.Extensions.Hosting.IHostEnvironment -> bool
<Extension()>
Public Function IsDevelopment (hostEnvironment As IHostEnvironment) As Boolean

Parametrar

hostEnvironment
IHostEnvironment

En instans av IHostEnvironment.

Returer

true om miljönamnet är Development, annars false.

Kommentarer

Miljönamnen "Utveckling", "Produktion" och "Mellanlagring" tillhandahålls som ett verktyg för programutvecklare. Biblioteksförfattare bör undvika att koppla specifika beteenden till dessa miljönamn.

Gäller för