FakeHostingExtensions.ConfigureHostConfiguration Yöntem

Tanım

Aşırı Yüklemeler

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

Yapılandırma girdileri ekler.

ConfigureHostConfiguration(IHostBuilder, String, String)

Yapılandırma değeri ekler.

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

Kaynak:
FakeHostingExtensions.cs
Kaynak:
FakeHostingExtensions.cs

Yapılandırma girdileri ekler.

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

Parametreler

builder
IHostBuilder

Bir IHostBuilder örnek.

configurations
ValueTuple<String,String>[]

Yapılandırma girdileri olarak kullanılacak anahtar ve değer demetlerinin listesi.

Döndürülenler

IHostBuilder örneği.

Şunlara uygulanır

ConfigureHostConfiguration(IHostBuilder, String, String)

Kaynak:
FakeHostingExtensions.cs
Kaynak:
FakeHostingExtensions.cs

Yapılandırma değeri ekler.

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

Parametreler

builder
IHostBuilder

Bir IHostBuilder örnek.

key
String

Yapılandırma anahtarı.

value
String

Yapılandırma değeri.

Döndürülenler

IHostBuilder örneği.

Şunlara uygulanır