IniConfigurationExtensions.AddIniFile Method

Definition

Overloads

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Adds a INI configuration source to builder.

AddIniFile(IConfigurationBuilder, String)

Adds the INI configuration provider at path to builder.

AddIniFile(IConfigurationBuilder, String, Boolean)

Adds the INI configuration provider at path to builder.

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

Adds the INI configuration provider at path to builder.

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

Adds a INI configuration source to builder.

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs

Adds a INI configuration source to 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

Parameters

configureSource
Action<IniConfigurationSource>

Configures the source.

Returns

The IConfigurationBuilder.

Applies to

AddIniFile(IConfigurationBuilder, String)

Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs

Adds the INI configuration provider at path to 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

Parameters

path
String

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

Returns

The IConfigurationBuilder.

Applies to

AddIniFile(IConfigurationBuilder, String, Boolean)

Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs

Adds the INI configuration provider at path to 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

Parameters

path
String

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

optional
Boolean

Whether the file is optional.

Returns

The IConfigurationBuilder.

Applies to

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs

Adds the INI configuration provider at path to 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

Parameters

path
String

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

optional
Boolean

true if the file is optional; otherwise, false.

reloadOnChange
Boolean

Whether the configuration should be reloaded if the file changes; otherwise, false.

Returns

The IConfigurationBuilder.

Applies to

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

Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs
Source:
IniConfigurationExtensions.cs

Adds a INI configuration source to 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

Parameters

provider
IFileProvider

The IFileProvider to use to access the file.

path
String

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

optional
Boolean

true if the file is optional; otherwise, false.

reloadOnChange
Boolean

true if the configuration should be reloaded if the file changes; otherwise, false.

Returns

The IConfigurationBuilder.

Applies to