HostingAbstractionsWebHostBuilderExtensions.UseConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Use the given configuration settings on the web host.
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
Parameters
- hostBuilder
- IWebHostBuilder
The IWebHostBuilder to configure.
- configuration
- IConfiguration
The IConfiguration containing settings to be used.
Returns
The IWebHostBuilder.