WebApplicationFactory<TEntryPoint>.ConfigureWebHost 方法

定義

讓裝置有機會在建置應用程式之前進行設定。

protected:
 virtual void ConfigureWebHost(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ builder);
protected virtual void ConfigureWebHost (Microsoft.AspNetCore.Hosting.IWebHostBuilder builder);
abstract member ConfigureWebHost : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> unit
override this.ConfigureWebHost : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> unit
Protected Overridable Sub ConfigureWebHost (builder As IWebHostBuilder)

參數

builder
IWebHostBuilder

IWebHostBuilder應用程式的 。

適用於