Aracılığıyla paylaş


WebAssemblyHostEnvironmentExtensions.IsProduction 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::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ı Productionise true, aksi takdirde false olur.

Şunlara uygulanır