WebAssemblyHostEnvironmentExtensions.IsProduction Methode

Definition

Überprüft, ob der Name der aktuellen Hostumgebung Production ist.

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

Parameter

hostingEnvironment
IWebAssemblyHostEnvironment

Eine Instanz von IWebAssemblyHostEnvironment.

Gibt zurück

True, wenn der Umgebungsname lautet Production, andernfalls false.

Gilt für: