FakeHostingExtensions.ConfigureAppConfiguration Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
ConfigureAppConfiguration(IHostBuilder, ValueTuple<String,String>[]) |
Menambahkan entri konfigurasi. |
ConfigureAppConfiguration(IHostBuilder, String, String) |
Menambahkan nilai konfigurasi. |
ConfigureAppConfiguration(IHostBuilder, ValueTuple<String,String>[])
- Sumber:
- FakeHostingExtensions.cs
Menambahkan entri konfigurasi.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureAppConfiguration(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, ... cli::array <ValueTuple<System::String ^, System::String ^>> ^ configurations);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureAppConfiguration (this Microsoft.Extensions.Hosting.IHostBuilder builder, params (string key, string value)[] configurations);
static member ConfigureAppConfiguration : Microsoft.Extensions.Hosting.IHostBuilder * ValueTuple<string, string>[] -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureAppConfiguration (builder As IHostBuilder, ParamArray configurations As ValueTuple(Of String, String)()) As IHostBuilder
Parameter
- builder
- IHostBuilder
Instans IHostBuilder .
- configurations
- ValueTuple<String,String>[]
Daftar tuple kunci dan nilai yang akan digunakan sebagai entri konfigurasi.
Mengembalikan
Instans IHostBuilder.
Berlaku untuk
ConfigureAppConfiguration(IHostBuilder, String, String)
- Sumber:
- FakeHostingExtensions.cs
Menambahkan nilai konfigurasi.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureAppConfiguration(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, System::String ^ key, System::String ^ value);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureAppConfiguration (this Microsoft.Extensions.Hosting.IHostBuilder builder, string key, string value);
static member ConfigureAppConfiguration : Microsoft.Extensions.Hosting.IHostBuilder * string * string -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureAppConfiguration (builder As IHostBuilder, key As String, value As String) As IHostBuilder
Parameter
- builder
- IHostBuilder
Instans IHostBuilder .
- key
- String
Kunci konfigurasi.
- value
- String
Nilai konfigurasi.
Mengembalikan
Instans IHostBuilder.
Berlaku untuk
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.