FakeHostingExtensions.ConfigureAppConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConfigureAppConfiguration(IHostBuilder, ValueTuple<String,String>[]) |
Adds configuration entries. |
ConfigureAppConfiguration(IHostBuilder, String, String) |
Adds a configuration value. |
ConfigureAppConfiguration(IHostBuilder, ValueTuple<String,String>[])
- Source:
- FakeHostingExtensions.cs
- Source:
- FakeHostingExtensions.cs
Adds configuration entries.
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
Parameters
- builder
- IHostBuilder
An IHostBuilder instance.
- configurations
- ValueTuple<String,String>[]
A list of key and value tuples that will be used as configuration entries.
Returns
The IHostBuilder instance.
Applies to
ConfigureAppConfiguration(IHostBuilder, String, String)
- Source:
- FakeHostingExtensions.cs
- Source:
- FakeHostingExtensions.cs
Adds a configuration value.
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
Parameters
- builder
- IHostBuilder
An IHostBuilder instance.
- key
- String
The configuration key.
- value
- String
The configuration value.
Returns
The IHostBuilder instance.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.