FakeHostingExtensions.ConfigureHostConfiguration Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[]) |
Ajoute des entrées de configuration. |
ConfigureHostConfiguration(IHostBuilder, String, String) |
Ajoute une valeur de configuration. |
ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[])
- Source:
- FakeHostingExtensions.cs
Ajoute des entrées de configuration.
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
Paramètres
- builder
- IHostBuilder
Instance de IHostBuilder.
- configurations
- ValueTuple<String,String>[]
Liste des tuples de clé et de valeur qui seront utilisés comme entrées de configuration.
Retours
Instance IHostBuilder.
S’applique à
ConfigureHostConfiguration(IHostBuilder, String, String)
- Source:
- FakeHostingExtensions.cs
Ajoute une valeur de configuration.
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
Paramètres
- builder
- IHostBuilder
Instance de IHostBuilder.
- key
- String
Clé de configuration.
- value
- String
Valeur de configuration.
Retours
Instance IHostBuilder.