共用方式為


WebHostBuilder.UseSetting(String, String) 方法

定義

在組態中新增或取代設定。

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

要加入或取代之設定的值。

傳回

IWebHostBuilder

實作

適用於