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.

Применяется к