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
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.