Share via


WebAssemblyHostEnvironmentExtensions.IsProduction Method

Definition

Checks if the current hosting environment name is Production.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsProduction(Microsoft::AspNetCore::Components::WebAssembly::Hosting::IWebAssemblyHostEnvironment ^ hostingEnvironment);
public static bool IsProduction (this Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment hostingEnvironment);
static member IsProduction : Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment -> bool
<Extension()>
Public Function IsProduction (hostingEnvironment As IWebAssemblyHostEnvironment) As Boolean

Parameters

hostingEnvironment
IWebAssemblyHostEnvironment

An instance of IWebAssemblyHostEnvironment.

Returns

True if the environment name is Production, otherwise false.

Applies to