ISupportsStartup.Configure 方法

定义

重载

Configure(Action<IApplicationBuilder>)

指定要用于配置 Web 应用程序的启动方法。

Configure(Action<WebHostBuilderContext,IApplicationBuilder>)

指定要用于配置 Web 应用程序的启动方法。

Configure(Action<IApplicationBuilder>)

Source:
ISupportsStartup.cs

指定要用于配置 Web 应用程序的启动方法。

public Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure (Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configure);
abstract member Configure : Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function Configure (configure As Action(Of IApplicationBuilder)) As IWebHostBuilder

参数

configure
Action<IApplicationBuilder>

用于配置 IApplicationBuilder 的委托。

返回

IWebHostBuilder

适用于

Configure(Action<WebHostBuilderContext,IApplicationBuilder>)

Source:
ISupportsStartup.cs

指定要用于配置 Web 应用程序的启动方法。

public Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure (Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.AspNetCore.Builder.IApplicationBuilder> configure);
abstract member Configure : Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function Configure (configure As Action(Of WebHostBuilderContext, IApplicationBuilder)) As IWebHostBuilder

参数

返回

IWebHostBuilder

适用于