HostingEnvironmentExtensions.IsDevelopment(IHostingEnvironment) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Geçerli barındırma ortamı adının olup Developmentolmadığını denetler.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsDevelopment(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment);
public static bool IsDevelopment (this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment);
static member IsDevelopment : Microsoft.AspNetCore.Hosting.IHostingEnvironment -> bool
<Extension()>
Public Function IsDevelopment (hostingEnvironment As IHostingEnvironment) As Boolean
Parametreler
- hostingEnvironment
- IHostingEnvironment
IHostingEnvironment öğesinin bir örneği.
Döndürülenler
Ortam adı Developmentise true, aksi takdirde false olur.