다음을 통해 공유


WebAssemblyHostEnvironmentExtensions.IsProduction 메서드

정의

현재 호스팅 환경 이름이 Production인지 확인합니다.

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

매개 변수

hostingEnvironment
IWebAssemblyHostEnvironment

IWebAssemblyHostEnvironment의 인스턴스입니다.

반환

환경 이름이 이면 True이고, 그렇지 않으면 false입니다 Production.

적용 대상