FakeHostingExtensions.ConfigureHostConfiguration 方法

定义

重载

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

添加配置条目。

ConfigureHostConfiguration(IHostBuilder, String, String)

添加配置值。

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

Source:
FakeHostingExtensions.cs
Source:
FakeHostingExtensions.cs

添加配置条目。

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

参数

builder
IHostBuilder

一个 IHostBuilder 实例。

configurations
ValueTuple<String,String>[]

将用作配置条目的键和值元组的列表。

返回

IHostBuilder 实例。

适用于

ConfigureHostConfiguration(IHostBuilder, String, String)

Source:
FakeHostingExtensions.cs
Source:
FakeHostingExtensions.cs

添加配置值。

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

参数

builder
IHostBuilder

一个 IHostBuilder 实例。

key
String

配置键。

value
String

配置值。

返回

IHostBuilder 实例。

适用于