Compartilhar via


HostingEnvironmentExtensions.IsDevelopment(IHostingEnvironment) Método

Definição

Verifica se o nome do ambiente de hospedagem atual é Development.

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

Parâmetros

hostingEnvironment
IHostingEnvironment

Uma instância de IHostingEnvironment.

Retornos

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

Aplica-se a