Compartilhar via


WebAssemblyHostEnvironmentExtensions.IsDevelopment Método

Definição

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

Uma instância de IWebAssemblyHostEnvironment.

Retornos

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

Aplica-se a