Compartir a través de


HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Método

Definición

Comprueba si el nombre del entorno de hospedaje actual es 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

Parámetros

hostingEnvironment
IHostingEnvironment

Instancia de IHostingEnvironment.

Devoluciones

True si el nombre del entorno es Production, de lo contrario, false.

Se aplica a