共用方式為


FakeHostingExtensions.ConfigureHostConfiguration 方法

定義

多載

ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[])

加入組態專案。

ConfigureHostConfiguration(IHostBuilder, String, String)

加入組態值。

ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[])

來源:
FakeHostingExtensions.cs

加入組態專案。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureHostConfiguration(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, ... cli::array <ValueTuple<System::String ^, System::String ^>> ^ configurations);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostConfiguration (this Microsoft.Extensions.Hosting.IHostBuilder builder, params (string key, string value)[] configurations);
static member ConfigureHostConfiguration : Microsoft.Extensions.Hosting.IHostBuilder * ValueTuple<string, string>[] -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureHostConfiguration (builder As IHostBuilder, ParamArray configurations As ValueTuple(Of String, String)()) As IHostBuilder

參數

builder
IHostBuilder

IHostBuilder 執行個體。

configurations
ValueTuple<String,String>[]

將作為組態專案的索引鍵和值元組清單。

傳回

IHostBuilder 執行個體。

適用於

ConfigureHostConfiguration(IHostBuilder, String, String)

來源:
FakeHostingExtensions.cs

加入組態值。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureHostConfiguration(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, System::String ^ key, System::String ^ value);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostConfiguration (this Microsoft.Extensions.Hosting.IHostBuilder builder, string key, string value);
static member ConfigureHostConfiguration : Microsoft.Extensions.Hosting.IHostBuilder * string * string -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureHostConfiguration (builder As IHostBuilder, key As String, value As String) As IHostBuilder

參數

builder
IHostBuilder

IHostBuilder 執行個體。

key
String

組態機碼。

value
String

組態值。

傳回

IHostBuilder 執行個體。

適用於