다음을 통해 공유


HostingAbstractionsWebHostBuilderExtensions.UseConfiguration 메서드

정의

웹 호스트에서 지정된 구성 설정을 사용합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseConfiguration(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseConfiguration (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member UseConfiguration : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseConfiguration (hostBuilder As IWebHostBuilder, configuration As IConfiguration) As IWebHostBuilder

매개 변수

hostBuilder
IWebHostBuilder

구성할 IWebHostBuilder입니다.

configuration
IConfiguration

IConfiguration 사용할 포함 설정입니다.

반환

IWebHostBuilder

적용 대상