Environment Extensions. Is Staging(IHostingEnvironment) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if the current hosting environment name is Staging.
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
True if the environment name is Staging, otherwise false.