共用方式為


ISupportsStartup.Configure 方法

定義

多載

Configure(Action<IApplicationBuilder>)

指定要用來設定 Web 應用程式的啟動方法。

Configure(Action<WebHostBuilderContext,IApplicationBuilder>)

指定要用來設定 Web 應用程式的啟動方法。

Configure(Action<IApplicationBuilder>)

來源:
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>)

來源:
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

適用於