ISupportsStartup.Configure 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Configure(Action<IApplicationBuilder>) |
指定要用來設定 Web 應用程式的啟動方法。 |
Configure(Action<WebHostBuilderContext,IApplicationBuilder>) |
指定要用來設定 Web 應用程式的啟動方法。 |
Configure(Action<IApplicationBuilder>)
指定要用來設定 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>)
指定要用來設定 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 的委派。