IniConfigurationExtensions.AddIniFile IniConfigurationExtensions.AddIniFile IniConfigurationExtensions.AddIniFile Method

Definition

Overloads

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>) AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>) AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Adds a INI configuration source to builder.

AddIniFile(IConfigurationBuilder, String) AddIniFile(IConfigurationBuilder, String) AddIniFile(IConfigurationBuilder, String)

Adds the INI configuration provider at path to builder.

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

Adds the INI configuration provider at path to builder.

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

Adds the INI configuration provider at path to builder.

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

Adds a INI configuration source to builder.

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>) AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>) AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Adds a INI configuration source to builder.

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
Parameters
configureSource
Action<IniConfigurationSource>

Configures the source.

Returns

AddIniFile(IConfigurationBuilder, String) AddIniFile(IConfigurationBuilder, String) AddIniFile(IConfigurationBuilder, String)

Adds the INI configuration provider at path to builder.

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
Parameters
path
String String String

Path relative to the base path stored in Properties of builder.

Returns

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

Adds the INI configuration provider at path to builder.

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
Parameters
path
String String String

Path relative to the base path stored in Properties of builder.

optional
Boolean Boolean Boolean

Whether the file is optional.

Returns

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

Adds the INI configuration provider at path to builder.

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
Parameters
path
String String String

Path relative to the base path stored in Properties of builder.

optional
Boolean Boolean Boolean

Whether the file is optional.

reloadOnChange
Boolean Boolean Boolean

Whether the configuration should be reloaded if the file changes.

Returns

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

Adds a INI configuration source to builder.

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
Parameters
provider
IFileProvider IFileProvider IFileProvider

The IFileProvider to use to access the file.

path
String String String

Path relative to the base path stored in Properties of builder.

optional
Boolean Boolean Boolean

Whether the file is optional.

reloadOnChange
Boolean Boolean Boolean

Whether the configuration should be reloaded if the file changes.

Returns

Applies to