WebAssemblyHostEnvironmentExtensions.IsProduction Méthode

Définition

Vérifie si le nom de l’environnement d’hébergement actuel est Production.

C#
public static bool IsProduction (this Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment hostingEnvironment);

Paramètres

Retours

True si le nom de l’environnement est Production, sinon false.

S’applique à

Produit Versions
ASP.NET Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0