HostingEnvironmentExtensions.IsStaging(IHostingEnvironment) HostingEnvironmentExtensions.IsStaging(IHostingEnvironment) HostingEnvironmentExtensions.IsStaging(IHostingEnvironment) HostingEnvironmentExtensions.IsStaging(IHostingEnvironment) Method

Definition

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

Parameters

Returns

True if the environment name is Staging, otherwise false.

Applies to