Condividi tramite


FakeHostingExtensions.ConfigureHostConfiguration Metodo

Definizione

Overload

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

Aggiunge voci di configurazione.

ConfigureHostConfiguration(IHostBuilder, String, String)

Aggiunge un valore di configurazione.

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

Origine:
FakeHostingExtensions.cs

Aggiunge voci di configurazione.

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

Parametri

builder
IHostBuilder

Istanza di IHostBuilder.

configurations
ValueTuple<String,String>[]

Elenco di tuple chiave e valore che verranno usate come voci di configurazione.

Restituisce

Istanza di IHostBuilder.

Si applica a

ConfigureHostConfiguration(IHostBuilder, String, String)

Origine:
FakeHostingExtensions.cs

Aggiunge un valore di configurazione.

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

Parametri

builder
IHostBuilder

Istanza di IHostBuilder.

key
String

Chiave di configurazione.

value
String

Valore di configurazione.

Restituisce

Istanza di IHostBuilder.

Si applica a