Freigeben über


FakeHostingExtensions.ConfigureHostConfiguration Methode

Definition

Überlädt

ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[])

Fügt Konfigurationseinträge hinzu.

ConfigureHostConfiguration(IHostBuilder, String, String)

Fügt einen Konfigurationswert hinzu.

ConfigureHostConfiguration(IHostBuilder, ValueTuple<String,String>[])

Quelle:
FakeHostingExtensions.cs
Quelle:
FakeHostingExtensions.cs

Fügt Konfigurationseinträge hinzu.

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

Parameter

builder
IHostBuilder

Eine IHostBuilder-Instanz.

configurations
ValueTuple<String,String>[]

Eine Liste von Schlüssel- und Werttupeln, die als Konfigurationseinträge verwendet werden.

Gibt zurück

Die IHostBuilder-Instanz.

Gilt für:

ConfigureHostConfiguration(IHostBuilder, String, String)

Quelle:
FakeHostingExtensions.cs
Quelle:
FakeHostingExtensions.cs

Fügt einen Konfigurationswert hinzu.

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

Parameter

builder
IHostBuilder

Eine IHostBuilder-Instanz.

key
String

Der Konfigurationsschlüssel.

value
String

Der Konfigurationswert.

Gibt zurück

Die IHostBuilder-Instanz.

Gilt für: