Compartir a través de


HostingEnvironmentExtensions.IsDevelopment(IHostingEnvironment) Método

Definición

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

Instancia de IHostingEnvironment.

Devoluciones

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

Se aplica a