IniConfigurationExtensions.AddIniFile 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
AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>) |
Menambahkan sumber konfigurasi INI ke |
AddIniFile(IConfigurationBuilder, String) |
Menambahkan penyedia konfigurasi INI ke |
AddIniFile(IConfigurationBuilder, String, Boolean) |
Menambahkan penyedia konfigurasi INI ke |
AddIniFile(IConfigurationBuilder, String, Boolean, Boolean) |
Menambahkan penyedia konfigurasi INI ke |
AddIniFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) |
Menambahkan sumber konfigurasi INI ke |
AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)
Menambahkan sumber konfigurasi INI ke builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddIniFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Action<Microsoft::Extensions::Configuration::Ini::IniConfigurationSource ^> ^ configureSource);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Action<Microsoft.Extensions.Configuration.Ini.IniConfigurationSource>? configureSource);
static member AddIniFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Action<Microsoft.Extensions.Configuration.Ini.IniConfigurationSource> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddIniFile (builder As IConfigurationBuilder, configureSource As Action(Of IniConfigurationSource)) As IConfigurationBuilder
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- configureSource
- Action<IniConfigurationSource>
Mengonfigurasi sumber.
Mengembalikan
Berlaku untuk
AddIniFile(IConfigurationBuilder, String)
Menambahkan penyedia konfigurasi INI ke path
builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddIniFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path);
static member AddIniFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddIniFile (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
AddIniFile(IConfigurationBuilder, String, Boolean)
Menambahkan penyedia konfigurasi INI ke path
builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddIniFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional);
static member AddIniFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddIniFile (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
AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)
Menambahkan penyedia konfigurasi INI ke path
builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddIniFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional, bool reloadOnChange);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange);
static member AddIniFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddIniFile (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
AddIniFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)
Menambahkan sumber konfigurasi INI ke builder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddIniFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Microsoft::Extensions::FileProviders::IFileProvider ^ provider, System::String ^ path, bool optional, bool reloadOnChange);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider? provider, string path, bool optional, bool reloadOnChange);
static member AddIniFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Microsoft.Extensions.FileProviders.IFileProvider * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddIniFile (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.