WebAssemblyHostEnvironmentExtensions.IsProduction 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 Production
olmadığını denetler.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsProduction(Microsoft::AspNetCore::Components::WebAssembly::Hosting::IWebAssemblyHostEnvironment ^ hostingEnvironment);
public static bool IsProduction (this Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment hostingEnvironment);
static member IsProduction : Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment -> bool
<Extension()>
Public Function IsProduction (hostingEnvironment As IWebAssemblyHostEnvironment) As Boolean
Parametreler
- hostingEnvironment
- IWebAssemblyHostEnvironment
IWebAssemblyHostEnvironment öğesinin bir örneği.
Döndürülenler
Ortam adı Production
ise true, aksi takdirde false olur.