共用方式為


ServiceFakesWebHostExtensions.UseFakeStartup(IWebHostBuilder) 方法

定義

新增空的 Startup 類別以滿足 ASP.NET 檢查。

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseFakeStartup (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder);
static member UseFakeStartup : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseFakeStartup (builder As IWebHostBuilder) As IWebHostBuilder

參數

builder
IWebHostBuilder

IWebHostBuilder 執行個體。

傳回

builder 的值。

適用於