Partager via


IniConfigurationExtensions.AddIniFile Méthode

Définition

Surcharges

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Ajoute une source de configuration INI à builder.

AddIniFile(IConfigurationBuilder, String)

Ajoute le fournisseur de configuration INI au path vers builder.

AddIniFile(IConfigurationBuilder, String, Boolean)

Ajoute le fournisseur de configuration INI au path vers builder.

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

Ajoute le fournisseur de configuration INI au path vers builder.

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

Ajoute une source de configuration INI à builder.

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

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

Ajoute une source de configuration INI à 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

Paramètres

configureSource
Action<IniConfigurationSource>

Configure la source.

Retours

Le IConfigurationBuilder.

S’applique à

AddIniFile(IConfigurationBuilder, String)

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

Ajoute le fournisseur de configuration INI au path vers 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

Paramètres

path
String

Chemin relatif au chemin de base stocké dans les Properties de builder.

Retours

Le IConfigurationBuilder.

S’applique à

AddIniFile(IConfigurationBuilder, String, Boolean)

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

Ajoute le fournisseur de configuration INI au path vers 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

Paramètres

path
String

Chemin relatif au chemin de base stocké dans les Properties de builder.

optional
Boolean

Si le fichier est facultatif.

Retours

Le IConfigurationBuilder.

S’applique à

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

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

Ajoute le fournisseur de configuration INI au path vers 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

Paramètres

path
String

Chemin relatif au chemin de base stocké dans les Properties de builder.

optional
Boolean

Si le fichier est facultatif.

reloadOnChange
Boolean

Si la configuration doit être rechargée quand le fichier est modifié.

Retours

Le IConfigurationBuilder.

S’applique à

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

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

Ajoute une source de configuration INI à 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

Paramètres

provider
IFileProvider

IFileProvider à utiliser pour accéder au fichier.

path
String

Chemin relatif au chemin de base stocké dans les Properties de builder.

optional
Boolean

Si le fichier est facultatif.

reloadOnChange
Boolean

Si la configuration doit être rechargée quand le fichier est modifié.

Retours

Le IConfigurationBuilder.

S’applique à