Share via


IWebHostBuilder.UseSetting(String, String) Method

Definition

Add or replace a setting in the configuration.

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

Parameters

key
String

The key of the setting to add or replace.

value
String

The value of the setting to add or replace.

Returns

The IWebHostBuilder.

Applies to