WebAssemblyHostEnvironmentExtensions.IsProduction Metoda

Definicja

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

Parametry

hostingEnvironment
IWebAssemblyHostEnvironment

Wystąpienie elementu IWebAssemblyHostEnvironment.

Zwraca

Prawda, jeśli nazwa środowiska to Production, w przeciwnym razie wartość false.

Dotyczy