Compartilhar via


FakeHostingExtensions.ConfigureHostConfiguration Método

Definição

Sobrecargas

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

Adiciona entradas de configuração.

ConfigureHostConfiguration(IHostBuilder, String, String)

Adiciona um valor de configuração.

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

Origem:
FakeHostingExtensions.cs
Origem:
FakeHostingExtensions.cs

Adiciona entradas de configuração.

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

Parâmetros

builder
IHostBuilder

Uma instância IHostBuilder.

configurations
ValueTuple<String,String>[]

Uma lista de tuplas de chave e valor que serão usadas como entradas de configuração.

Retornos

A instância IHostBuilder.

Aplica-se a

ConfigureHostConfiguration(IHostBuilder, String, String)

Origem:
FakeHostingExtensions.cs
Origem:
FakeHostingExtensions.cs

Adiciona um valor de configuração.

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

Parâmetros

builder
IHostBuilder

Uma instância IHostBuilder.

key
String

A chave de configuração.

value
String

O valor de configuração.

Retornos

A instância IHostBuilder.

Aplica-se a