Partilhar via


WebAssemblyHostEnvironmentExtensions.IsStaging Método

Definição

Verifica se o nome do ambiente de hospedagem atual é 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

Uma instância de IWebAssemblyHostEnvironment.

Retornos

True se o nome do ambiente for Staging, caso contrário, false.

Aplica-se a