WebHostBuilder.UseSetting(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在配置中添加或替换设置。
public:
virtual 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
override this.UseSetting : string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function UseSetting (key As String, value As String) As IWebHostBuilder
参数
- key
- String
要添加或替换的设置的键。
- value
- String
要添加或替换的设置的值。