HostEnvironmentEnvExtensions.IsStaging(IHostEnvironment) Methode

Definition

Überprüft, ob der Name der aktuellen Hostumgebung Staging ist. Diese API darf nicht in Bibliotheken verwendet werden. Einzelheiten finden Sie in den Hinweisen.

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

Parameter

hostEnvironment
IHostEnvironment

Eine Instanz von IHostEnvironment.

Gibt zurück

true, wenn der Umgebungsname Staging ist, andernfalls false.

Hinweise

Die Umgebungsnamen "Development", "Production" und "Staging" werden als Hilfsprogramm für Anwendungsentwickler bereitgestellt. Bibliotheksautoren sollten vermeiden, bestimmtes Verhalten mit diesen Umgebungsnamen zu koppeln.

Gilt für: