JsonConfigurationExtensions.AddJsonFile 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
AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>) |
Menambahkan sumber konfigurasi JSON ke |
AddJsonFile(IConfigurationBuilder, String) |
Menambahkan penyedia konfigurasi JSON di |
AddJsonFile(IConfigurationBuilder, String, Boolean) |
Menambahkan penyedia konfigurasi JSON di |
AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean) |
Menambahkan penyedia konfigurasi JSON di |
AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) |
Menambahkan sumber konfigurasi JSON ke |
AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)
Menambahkan sumber konfigurasi JSON ke builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Action<Microsoft::Extensions::Configuration::Json::JsonConfigurationSource ^> ^ configureSource);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Action<Microsoft.Extensions.Configuration.Json.JsonConfigurationSource>? configureSource);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Action<Microsoft.Extensions.Configuration.Json.JsonConfigurationSource> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, configureSource As Action(Of JsonConfigurationSource)) As IConfigurationBuilder
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- configureSource
- Action<JsonConfigurationSource>
Mengonfigurasi sumber.
Mengembalikan
Berlaku untuk
AddJsonFile(IConfigurationBuilder, String)
Menambahkan penyedia konfigurasi JSON di path
ke builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, path As String) As IConfigurationBuilder
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
Mengembalikan
Berlaku untuk
AddJsonFile(IConfigurationBuilder, String, Boolean)
Menambahkan penyedia konfigurasi JSON di path
ke builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, path As String, optional As Boolean) As IConfigurationBuilder
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
- optional
- Boolean
Apakah file bersifat opsional.
Mengembalikan
Berlaku untuk
AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)
Menambahkan penyedia konfigurasi JSON di path
ke builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional, bool reloadOnChange);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
- optional
- Boolean
Apakah file bersifat opsional.
- reloadOnChange
- Boolean
Apakah konfigurasi harus dimuat ulang jika file berubah.
Mengembalikan
Berlaku untuk
AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)
Menambahkan sumber konfigurasi JSON ke builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Microsoft::Extensions::FileProviders::IFileProvider ^ provider, System::String ^ path, bool optional, bool reloadOnChange);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider? provider, string path, bool optional, bool reloadOnChange);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Microsoft.Extensions.FileProviders.IFileProvider * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, provider As IFileProvider, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- provider
- IFileProvider
yang IFileProvider digunakan untuk mengakses file.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
- optional
- Boolean
Apakah file bersifat opsional.
- reloadOnChange
- Boolean
Apakah konfigurasi harus dimuat ulang jika file berubah.