HostingEnvironmentExtensions.IsStaging(IHostingEnvironment) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überprüft, ob der Name der aktuellen Hostumgebung Staging ist.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsStaging(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment);
public static bool IsStaging (this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment);
static member IsStaging : Microsoft.AspNetCore.Hosting.IHostingEnvironment -> bool
<Extension()>
Public Function IsStaging (hostingEnvironment As IHostingEnvironment) As Boolean
Parameter
- hostingEnvironment
- IHostingEnvironment
Eine Instanz von IHostingEnvironment.
Gibt zurück
True, wenn der Umgebungsname ist Staging, andernfalls false.
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für