IWebHostBuilder.UseSetting(String, String) 方法

定义

在配置中添加或替换设置。

public:
 Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseSetting(System::String ^ key, System::String ^ value);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSetting (string key, string value);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSetting (string key, string? value);
abstract member UseSetting : string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function UseSetting (key As String, value As String) As IWebHostBuilder

参数

key
String

要添加或替换的设置的键。

value
String

要添加或替换的设置的值。

返回

IWebHostBuilder

适用于