Partager via


HostingEnvironmentExtensions.IsDevelopment(IHostingEnvironment) Méthode

Définition

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

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

Paramètres

hostingEnvironment
IHostingEnvironment

Instance de IHostingEnvironment.

Retours

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

S’applique à