WebAssemblyHostEnvironmentExtensions.IsDevelopment Metoda

Definicja

Sprawdza, czy bieżąca nazwa środowiska hostingu to 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

Parametry

hostingEnvironment
IWebAssemblyHostEnvironment

Wystąpienie elementu IWebAssemblyHostEnvironment.

Zwraca

Wartość True, jeśli nazwa środowiska to Development, w przeciwnym razie wartość false.

Dotyczy