HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Метод

Определение

Проверяет, имеет ли текущая среда размещения имя Production.

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

Параметры

hostingEnvironment
IHostingEnvironment

Экземпляр IHostingEnvironment.

Возвращаемое значение

Значение true, если имя среды — Production, в противном случае — false.

Применяется к