WebAssemblyHostEnvironmentExtensions.IsStaging Metoda

Definicja

Sprawdza, czy bieżąca nazwa środowiska hostingu to Staging.

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

Parametry

hostingEnvironment
IWebAssemblyHostEnvironment

Wystąpienie elementu IWebAssemblyHostEnvironment.

Zwraca

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

Dotyczy