Aracılığıyla paylaş


HostingEnvironmentExtensions.IsStaging(IHostingEnvironment) Yöntem

Tanım

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

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

Parametreler

hostingEnvironment
IHostingEnvironment

IHostingEnvironment öğesinin bir örneği.

Döndürülenler

Ortam adı Stagingise true, aksi takdirde false olur.

Şunlara uygulanır