HostingHostBuilderExtensions.UseEnvironment(IHostBuilder, String) 메서드

정의

호스트에서 사용할 환경을 지정합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ UseEnvironment(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, System::String ^ environment);
public static Microsoft.Extensions.Hosting.IHostBuilder UseEnvironment (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, string environment);
static member UseEnvironment : Microsoft.Extensions.Hosting.IHostBuilder * string -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseEnvironment (hostBuilder As IHostBuilder, environment As String) As IHostBuilder

매개 변수

hostBuilder
IHostBuilder

구성할 IHostBuilder입니다.

environment
String

애플리케이션을 호스트하는 환경입니다.

반환

IHostBuilder

적용 대상