共用方式為


FakeHostingExtensions.ConfigureAppConfiguration 方法

定義

多載

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

新增組態專案。

ConfigureAppConfiguration(IHostBuilder, String, String)

加入組態值。

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

來源:
FakeHostingExtensions.cs

新增組態專案。

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

參數

builder
IHostBuilder

IHostBuilder 執行個體。

configurations
ValueTuple<String,String>[]

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

傳回

IHostBuilder 執行個體。

適用於

ConfigureAppConfiguration(IHostBuilder, String, String)

來源:
FakeHostingExtensions.cs

加入組態值。

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

參數

builder
IHostBuilder

IHostBuilder 執行個體。

key
String

組態機碼。

value
String

組態值。

傳回

IHostBuilder 執行個體。

適用於