Compartir a través de


FakeHostingExtensions.ConfigureAppConfiguration Método

Definición

Sobrecargas

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

Agrega entradas de configuración.

ConfigureAppConfiguration(IHostBuilder, String, String)

Agrega un valor de configuración.

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

Source:
FakeHostingExtensions.cs

Agrega entradas de configuración.

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

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

ConfigureAppConfiguration(IHostBuilder, String, String)

Source:
FakeHostingExtensions.cs

Agrega un valor de configuración.

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

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