Compartir a través de


WebAssemblyHostEnvironmentExtensions.IsDevelopment 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::Components::WebAssembly::Hosting::IWebAssemblyHostEnvironment ^ hostingEnvironment);
public static bool IsDevelopment (this Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment hostingEnvironment);
static member IsDevelopment : Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment -> bool
<Extension()>
Public Function IsDevelopment (hostingEnvironment As IWebAssemblyHostEnvironment) As Boolean

Parámetros

hostingEnvironment
IWebAssemblyHostEnvironment

Instancia de IWebAssemblyHostEnvironment.

Devoluciones

True si el nombre del entorno es Development, en caso contrario, false.

Se aplica a