Compartir a través de


WebAssemblyHostEnvironmentExtensions.IsStaging Método

Definición

Comprueba si el nombre del entorno de hospedaje actual es 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

Parámetros

hostingEnvironment
IWebAssemblyHostEnvironment

Instancia de IWebAssemblyHostEnvironment.

Devoluciones

True si el nombre del entorno es Staging, de lo contrario, false.

Se aplica a