Compartir a través de


WebAssemblyHostEnvironmentExtensions.IsProduction Método

Definición

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

Parámetros

hostingEnvironment
IWebAssemblyHostEnvironment

Instancia de IWebAssemblyHostEnvironment.

Devoluciones

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

Se aplica a