다음을 통해 공유


HostingEnvironmentExtensions.IsDevelopment(IHostingEnvironment) 메서드

정의

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

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

매개 변수

hostingEnvironment
IHostingEnvironment

IHostingEnvironment의 인스턴스입니다.

반환

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

적용 대상