Sdílet prostřednictvím


FakeHostingExtensions.ConfigureAppConfiguration Metoda

Definice

Přetížení

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

Přidá položky konfigurace.

ConfigureAppConfiguration(IHostBuilder, String, String)

Přidá hodnotu konfigurace.

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

Zdroj:
FakeHostingExtensions.cs

Přidá položky konfigurace.

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

Instance IHostBuilder .

configurations
ValueTuple<String,String>[]

Seznam řazených kolekcí členů klíče a hodnoty, které budou použity jako položky konfigurace.

Návraty

Instance IHostBuilder.

Platí pro

ConfigureAppConfiguration(IHostBuilder, String, String)

Zdroj:
FakeHostingExtensions.cs

Přidá hodnotu konfigurace.

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

Instance IHostBuilder .

key
String

Konfigurační klíč.

value
String

Hodnota konfigurace.

Návraty

Instance IHostBuilder.

Platí pro