FakeHostingExtensions.ConfigureHostConfiguration Método
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[]) |
Agrega entradas de configuración. |
ConfigureHostConfiguration(IHostBuilder, String, String) |
Agrega un valor de configuración. |
- Source:
- FakeHostingExtensions.cs
Agrega entradas de configuración.
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
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) |
- Source:
- FakeHostingExtensions.cs
Agrega un valor de configuración.
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
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) |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: