HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Metoda

Definice

Zkontroluje, jestli je Productionaktuální název hostitelského prostředí .

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsProduction(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment);
public static bool IsProduction (this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment);
static member IsProduction : Microsoft.AspNetCore.Hosting.IHostingEnvironment -> bool
<Extension()>
Public Function IsProduction (hostingEnvironment As IHostingEnvironment) As Boolean

Parametry

hostingEnvironment
IHostingEnvironment

Instance .IHostingEnvironment

Návraty

Boolean

True, pokud je Productionnázev prostředí , jinak nepravda.

Platí pro