共用方式為


FakeHost.CreateBuilder 方法

定義

多載

CreateBuilder()

建立的 IHostBuilder 實例,以設定和建置主機。

CreateBuilder(FakeHostOptions)

建立的 IHostBuilder 實例,以設定和建置主機。

CreateBuilder(Action<FakeHostOptions>)

建立的 IHostBuilder 實例,以設定和建置主機。

CreateBuilder()

來源:
FakeHost.cs

建立的 IHostBuilder 實例,以設定和建置主機。

public:
 static Microsoft::Extensions::Hosting::IHostBuilder ^ CreateBuilder();
public static Microsoft.Extensions.Hosting.IHostBuilder CreateBuilder ();
static member CreateBuilder : unit -> Microsoft.Extensions.Hosting.IHostBuilder
Public Shared Function CreateBuilder () As IHostBuilder

傳回

IHostBuilder 的執行個體。

適用於

CreateBuilder(FakeHostOptions)

來源:
FakeHost.cs

建立的 IHostBuilder 實例,以設定和建置主機。

public:
 static Microsoft::Extensions::Hosting::IHostBuilder ^ CreateBuilder(Microsoft::Extensions::Hosting::Testing::FakeHostOptions ^ options);
public static Microsoft.Extensions.Hosting.IHostBuilder CreateBuilder (Microsoft.Extensions.Hosting.Testing.FakeHostOptions options);
static member CreateBuilder : Microsoft.Extensions.Hosting.Testing.FakeHostOptions -> Microsoft.Extensions.Hosting.IHostBuilder
Public Shared Function CreateBuilder (options As FakeHostOptions) As IHostBuilder

參數

options
FakeHostOptions

FakeHostOptions 執行個體。

傳回

IHostBuilder 的執行個體。

適用於

CreateBuilder(Action<FakeHostOptions>)

來源:
FakeHost.cs

建立的 IHostBuilder 實例,以設定和建置主機。

public:
 static Microsoft::Extensions::Hosting::IHostBuilder ^ CreateBuilder(Action<Microsoft::Extensions::Hosting::Testing::FakeHostOptions ^> ^ configure);
public static Microsoft.Extensions.Hosting.IHostBuilder CreateBuilder (Action<Microsoft.Extensions.Hosting.Testing.FakeHostOptions> configure);
static member CreateBuilder : Action<Microsoft.Extensions.Hosting.Testing.FakeHostOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Shared Function CreateBuilder (configure As Action(Of FakeHostOptions)) As IHostBuilder

參數

configure
Action<FakeHostOptions>

設定 FakeHostOptions 實例的選項。

傳回

IHostBuilder 的執行個體。

適用於