FakeHost.CreateBuilder 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateBuilder() |
建立的 IHostBuilder 實例,以設定和建置主機。 |
CreateBuilder(FakeHostOptions) |
建立的 IHostBuilder 實例,以設定和建置主機。 |
CreateBuilder(Action<FakeHostOptions>) |
建立的 IHostBuilder 實例,以設定和建置主機。 |
CreateBuilder()
- 來源:
- FakeHost.cs
- 來源:
- 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
- 來源:
- 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
- 來源:
- 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 的執行個體。