HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) Yöntem

Tanım

Geçerli barındırma ortamı adının olup Productionolmadığını denetler.

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

Parametreler

hostingEnvironment
IHostingEnvironment

IHostingEnvironment öğesinin bir örneği.

Döndürülenler

Ortam adı ise true, Productionaksi takdirde false olur.

Şunlara uygulanır