다음을 통해 공유


HostingEnvironmentExtensions.IsProduction(IHostingEnvironment) 메서드

정의

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

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsProduction(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment);
public static bool IsProduction (this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment);
static member IsProduction : Microsoft.AspNetCore.Hosting.IHostingEnvironment -> bool
<Extension()>
Public Function IsProduction (hostingEnvironment As IHostingEnvironment) As Boolean

매개 변수

hostingEnvironment
IHostingEnvironment

IHostingEnvironment의 인스턴스입니다.

반환

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

적용 대상