共用方式為


ConfigureHostBuilder 類別

定義

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

public sealed class ConfigureHostBuilder : Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsConfigureWebHost, Microsoft.Extensions.Hosting.IHostBuilder
type ConfigureHostBuilder = class
    interface IHostBuilder
    interface ISupportsConfigureWebHost
Public NotInheritable Class ConfigureHostBuilder
Implements IHostBuilder, ISupportsConfigureWebHost
繼承
ConfigureHostBuilder
實作

屬性

Properties

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

方法

ConfigureAppConfiguration(Action<HostBuilderContext,IConfigurationBuilder>)

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

ConfigureContainer<TContainerBuilder>(Action<HostBuilderContext,TContainerBuilder>)

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

ConfigureHostConfiguration(Action<IConfigurationBuilder>)

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

ConfigureServices(Action<HostBuilderContext,IServiceCollection>)

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>)

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

明確介面實作

IHostBuilder.Build()

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

ISupportsConfigureWebHost.ConfigureWebHost(Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

不可建置 IHostBuilderWebApplicationBuilder 。 用來 Build() 建置 WebApplicationBuilder

適用於