FakeHostingExtensions.ConfigureHostConfiguration 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
ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[]) |
Adds configuration entries. |
ConfigureHostConfiguration(IHostBuilder, String, String) |
Adds a configuration value. |
ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[])
- Source:
- FakeHostingExtensions.cs
Adds configuration entries.
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
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
ConfigureHostConfiguration(IHostBuilder, String, String)
- Source:
- FakeHostingExtensions.cs
Adds a configuration value.
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
Parameters
- builder
- IHostBuilder
An IHostBuilder instance.
- key
- String
The configuration key.
- value
- String
The configuration value.
Returns
The IHostBuilder instance.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.