WebAssemblyHostEnvironmentExtensions.IsDevelopment Method

Definition

Checks if the current hosting environment name is 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

Parameters

hostingEnvironment
IWebAssemblyHostEnvironment

An instance of IWebAssemblyHostEnvironment.

Returns

Boolean

True if the environment name is Development, otherwise false.

Applies to