Compartir a través de


IWebHostBuilder.UseSetting(String, String) Método

Definición

Agregue o reemplace un valor en la configuración.

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

Parámetros

key
String

Clave de la configuración que se va a agregar o reemplazar.

value
String

Valor de la configuración que se va a agregar o reemplazar.

Devoluciones

IWebHostBuilder.

Se aplica a