Bagikan melalui


IniConfigurationExtensions.AddIniFile Metode

Definisi

Overload

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Menambahkan sumber konfigurasi INI ke builder.

AddIniFile(IConfigurationBuilder, String)

Menambahkan penyedia konfigurasi INI ke pathbuilder.

AddIniFile(IConfigurationBuilder, String, Boolean)

Menambahkan penyedia konfigurasi INI ke pathbuilder.

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

Menambahkan penyedia konfigurasi INI ke pathbuilder.

AddIniFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)

Menambahkan sumber konfigurasi INI ke builder.

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs

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

IConfigurationBuilder.

Berlaku untuk

AddIniFile(IConfigurationBuilder, String)

Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs

Menambahkan penyedia konfigurasi INI ke pathbuilder.

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

IConfigurationBuilder.

Berlaku untuk

AddIniFile(IConfigurationBuilder, String, Boolean)

Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs

Menambahkan penyedia konfigurasi INI ke pathbuilder.

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

IConfigurationBuilder.

Berlaku untuk

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs

Menambahkan penyedia konfigurasi INI ke pathbuilder.

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

IConfigurationBuilder.

Berlaku untuk

AddIniFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)

Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs
Sumber:
IniConfigurationExtensions.cs

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.

Mengembalikan

IConfigurationBuilder.

Berlaku untuk