Freigeben über


FakeHostingExtensions.ConfigureAppConfiguration Methode

Definition

Überlädt

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

Fügt Konfigurationseinträge hinzu.

ConfigureAppConfiguration(IHostBuilder, String, String)

Fügt einen Konfigurationswert hinzu.

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

Quelle:
FakeHostingExtensions.cs

Fügt Konfigurationseinträge hinzu.

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

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:

ConfigureAppConfiguration(IHostBuilder, String, String)

Quelle:
FakeHostingExtensions.cs

Fügt einen Konfigurationswert hinzu.

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

Parameter

builder
IHostBuilder

Eine IHostBuilder-Instanz.

key
String

Der Konfigurationsschlüssel.

value
String

Der Konfigurationswert.

Gibt zurück

Die IHostBuilder-Instanz.

Gilt für: