Udostępnij za pośrednictwem


FakeHostingExtensions.ConfigureAppConfiguration Metoda

Definicja

Przeciążenia

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

Dodaje wpisy konfiguracji.

ConfigureAppConfiguration(IHostBuilder, String, String)

Dodaje wartość konfiguracji.

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

Źródło:
FakeHostingExtensions.cs

Dodaje wpisy konfiguracji.

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

Parametry

builder
IHostBuilder

Wystąpienie IHostBuilder .

configurations
ValueTuple<String,String>[]

Lista krotki klucza i wartości, które będą używane jako wpisy konfiguracji.

Zwraca

Wystąpienie elementu IHostBuilder.

Dotyczy

ConfigureAppConfiguration(IHostBuilder, String, String)

Źródło:
FakeHostingExtensions.cs

Dodaje wartość konfiguracji.

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

Parametry

builder
IHostBuilder

Wystąpienie IHostBuilder .

key
String

Klucz konfiguracji.

value
String

Wartość konfiguracji.

Zwraca

Wystąpienie elementu IHostBuilder.

Dotyczy