FakeHostingExtensions.ConfigureHostConfiguration Método

Definición

Sobrecargas

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

Source:
FakeHostingExtensions.cs

Agrega entradas de configuración.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostConfiguration (this Microsoft.Extensions.Hosting.IHostBuilder builder, params (string key, string value)[] configurations);

Parámetros

builder
IHostBuilder

Instancia de IHostBuilder.

configurations
ValueTuple<String,String>[]

Lista de tuplas de clave y valor que se usarán como entradas de configuración.

Devoluciones

Instancia de IHostBuilder.

Se aplica a

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

ConfigureHostConfiguration(IHostBuilder, String, String)

Source:
FakeHostingExtensions.cs

Agrega un valor de configuración.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostConfiguration (this Microsoft.Extensions.Hosting.IHostBuilder builder, string key, string value);

Parámetros

builder
IHostBuilder

Instancia de IHostBuilder.

key
String

Clave de configuración.

value
String

El valor de configuración.

Devoluciones

Instancia de IHostBuilder.

Se aplica a

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)