Share via


FakeHostingExtensions.ConfigureHostConfiguration Method

Definition

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
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
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