ISupportsStartup.Configure 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 的委托。
返回
适用于
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
参数
- configure
- Action<WebHostBuilderContext,IApplicationBuilder>
用于配置 IApplicationBuilder 的委托。