Aracılığıyla paylaş


GenericHostWebHostBuilderExtensions.ConfigureWebHost Yöntem

Tanım

Aşırı Yüklemeler

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

bir ASP.NET Core web uygulaması ekler ve yapılandırılır.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

bir ASP.NET Core web uygulaması ekler ve yapılandırılır.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Kaynak:
GenericHostWebHostBuilderExtensions.cs

bir ASP.NET Core web uygulaması ekler ve yapılandırılır.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder)) As IHostBuilder

Parametreler

configure
Action<IWebHostBuilder>

öğesini yapılandıran IWebHostBuildertemsilci.

Döndürülenler

IHostBuilder.

Şunlara uygulanır

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

Kaynak:
GenericHostWebHostBuilderExtensions.cs

bir ASP.NET Core web uygulaması ekler ve yapılandırılır.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureWebHostBuilder);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder), configureWebHostBuilder As Action(Of WebHostBuilderOptions)) As IHostBuilder

Parametreler

configure
Action<IWebHostBuilder>

öğesini yapılandıran IWebHostBuildertemsilci.

configureWebHostBuilder
Action<WebHostBuilderOptions>

öğesini yapılandıran WebHostBuilderOptionstemsilci.

Döndürülenler

IHostBuilder.

Şunlara uygulanır