Share via


HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Methode

Definition

Überprüft, ob der Name der aktuellen Hostumgebung Production ist.

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

Parameter

hostingEnvironment
IHostingEnvironment

Eine Instanz von IHostingEnvironment.

Gibt zurück

True, wenn der Umgebungsname lautet Production, andernfalls false.

Gilt für: