Share via


HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Méthode

Définition

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

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

Paramètres

hostingEnvironment
IHostingEnvironment

Instance de IHostingEnvironment.

Retours

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

S’applique à