Condividi tramite


HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Metodo

Definizione

Controlla se il nome dell'ambiente di hosting corrente è Production.

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

Parametri

hostingEnvironment
IHostingEnvironment

Istanza di IHostingEnvironment.

Restituisce

True se il nome dell'ambiente è Production, in caso contrario false.

Si applica a