Share via


WebHostBuilder.UseSetting(String, String) Method

Definition

Add or replace a setting in the configuration.

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

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.

Implements

Applies to