Compartilhar via


HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Método

Definição

Verifica se o nome do ambiente de hospedagem atual é 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

Uma instância de IHostingEnvironment.

Retornos

True se o nome do ambiente for Production, caso contrário, false.

Aplica-se a