次の方法で共有


GenericHostWebHostBuilderExtensions.ConfigureWebHost メソッド

定義

オーバーロード

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

ASP.NET Core Web アプリケーションを追加して構成します。

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

ASP.NET Core Web アプリケーションを追加して構成します。

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

ソース:
GenericHostWebHostBuilderExtensions.cs

ASP.NET Core Web アプリケーションを追加して構成します。

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

パラメーター

builder
IHostBuilder

IWebHostBuilder の追加先となる IHostBuilder

configure
Action<IWebHostBuilder>

IWebHostBuilderを構成するデリゲート。

戻り値

IHostBuilder

適用対象

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

ソース:
GenericHostWebHostBuilderExtensions.cs

ASP.NET Core Web アプリケーションを追加して構成します。

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

パラメーター

builder
IHostBuilder

IWebHostBuilder の追加先となる IHostBuilder

configure
Action<IWebHostBuilder>

IWebHostBuilderを構成するデリゲート。

configureWebHostBuilder
Action<WebHostBuilderOptions>

WebHostBuilderOptionsを構成するデリゲート。

戻り値

IHostBuilder

適用対象