Taal

HostingEnvironmentExtensions.IsDevelopment(IHostingEnvironment) Methode

Definitie

Controleert of de naam van de huidige hostingomgeving is Development.

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

Parameters

hostingEnvironment
IHostingEnvironment

Een exemplaar van IHostingEnvironment.

Retouren

true als de omgevingsnaam is Development, anders false.

Opmerkingen

De omgevingsnamen 'Ontwikkeling', 'Productie' en 'Fasering' worden geleverd als een hulpprogramma voor toepassingsontwikkelaars. Auteurs van bibliotheken moeten het koppelen van specifiek gedrag aan deze omgevingsnamen voorkomen.

Van toepassing op