Compartilhar via


IniConfigurationExtensions.AddIniFile Método

Definição

Sobrecargas

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Adiciona uma origem de configuração INI a builder.

AddIniFile(IConfigurationBuilder, String)

Adiciona o provedor de configuração INI em path para builder.

AddIniFile(IConfigurationBuilder, String, Boolean)

Adiciona o provedor de configuração INI em path para builder.

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

Adiciona o provedor de configuração INI em path para builder.

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

Adiciona uma origem de configuração INI a builder.

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs

Adiciona uma origem de configuração INI a 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

Parâmetros

builder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

configureSource
Action<IniConfigurationSource>

Configura a origem.

Retornos

O IConfigurationBuilder.

Aplica-se a

AddIniFile(IConfigurationBuilder, String)

Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs

Adiciona o provedor de configuração INI em path para 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

Parâmetros

builder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

path
String

Caminho relativo ao caminho base armazenado em Properties de builder.

Retornos

O IConfigurationBuilder.

Aplica-se a

AddIniFile(IConfigurationBuilder, String, Boolean)

Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs

Adiciona o provedor de configuração INI em path para 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

Parâmetros

builder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

path
String

Caminho relativo ao caminho base armazenado em Properties de builder.

optional
Boolean

Se o arquivo é opcional.

Retornos

O IConfigurationBuilder.

Aplica-se a

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs

Adiciona o provedor de configuração INI em path para 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

Parâmetros

builder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

path
String

Caminho relativo ao caminho base armazenado em Properties de builder.

optional
Boolean

Se o arquivo é opcional.

reloadOnChange
Boolean

Se a configuração deve ser recarregada em caso de alteração do arquivo.

Retornos

O IConfigurationBuilder.

Aplica-se a

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

Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs
Origem:
IniConfigurationExtensions.cs

Adiciona uma origem de configuração INI a 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

Parâmetros

builder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

provider
IFileProvider

O IFileProvider a ser usado para acessar o arquivo.

path
String

Caminho relativo ao caminho base armazenado em Properties de builder.

optional
Boolean

Se o arquivo é opcional.

reloadOnChange
Boolean

Se a configuração deve ser recarregada em caso de alteração do arquivo.

Retornos

O IConfigurationBuilder.

Aplica-se a