IniConfigurationExtensions.AddIniFile メソッド

定義

オーバーロード

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

INI 構成ソースを builder に追加します。Adds a INI configuration source to builder.

AddIniFile(IConfigurationBuilder, String)

path の INI 構成プロバイダーを builder に追加します。Adds the INI configuration provider at path to builder.

AddIniFile(IConfigurationBuilder, String, Boolean)

path の INI 構成プロバイダーを builder に追加します。Adds the INI configuration provider at path to builder.

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

path の INI 構成プロバイダーを builder に追加します。Adds the INI configuration provider at path to builder.

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

INI 構成ソースを builder に追加します。Adds a INI configuration source to builder.

AddIniFile(IConfigurationBuilder, Action<IniConfigurationSource>)

INI 構成ソースを builder に追加します。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

パラメーター

builder
IConfigurationBuilder

追加先の IConfigurationBuilderThe IConfigurationBuilder to add to.

configureSource
Action<IniConfigurationSource>

ソースを構成します。Configures the source.

戻り値

IConfigurationBuilder

IConfigurationBuilderThe IConfigurationBuilder.

適用対象

AddIniFile(IConfigurationBuilder, String)

path の INI 構成プロバイダーを builder に追加します。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

パラメーター

builder
IConfigurationBuilder

追加先の IConfigurationBuilderThe IConfigurationBuilder to add to.

path
String

builderProperties に格納されているベース パスの相対パス。Path relative to the base path stored in Properties of builder.

戻り値

IConfigurationBuilder

IConfigurationBuilderThe IConfigurationBuilder.

適用対象

AddIniFile(IConfigurationBuilder, String, Boolean)

path の INI 構成プロバイダーを builder に追加します。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

パラメーター

builder
IConfigurationBuilder

追加先の IConfigurationBuilderThe IConfigurationBuilder to add to.

path
String

builderProperties に格納されているベース パスの相対パス。Path relative to the base path stored in Properties of builder.

optional
Boolean

ファイルを省略可能かどうか。Whether the file is optional.

戻り値

IConfigurationBuilder

IConfigurationBuilderThe IConfigurationBuilder.

適用対象

AddIniFile(IConfigurationBuilder, String, Boolean, Boolean)

path の INI 構成プロバイダーを builder に追加します。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

パラメーター

builder
IConfigurationBuilder

追加先の IConfigurationBuilderThe IConfigurationBuilder to add to.

path
String

builderProperties に格納されているベース パスの相対パス。Path relative to the base path stored in Properties of builder.

optional
Boolean

ファイルを省略可能かどうか。Whether the file is optional.

reloadOnChange
Boolean

ファイルが変更された場合に構成を再度読み込むかどうか。Whether the configuration should be reloaded if the file changes.

戻り値

IConfigurationBuilder

IConfigurationBuilderThe IConfigurationBuilder.

適用対象

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

INI 構成ソースを builder に追加します。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

パラメーター

builder
IConfigurationBuilder

追加先の IConfigurationBuilderThe IConfigurationBuilder to add to.

provider
IFileProvider

ファイルにアクセスするために使用される IFileProviderThe IFileProvider to use to access the file.

path
String

builderProperties に格納されているベース パスの相対パス。Path relative to the base path stored in Properties of builder.

optional
Boolean

ファイルを省略可能かどうか。Whether the file is optional.

reloadOnChange
Boolean

ファイルが変更された場合に構成を再度読み込むかどうか。Whether the configuration should be reloaded if the file changes.

戻り値

IConfigurationBuilder

IConfigurationBuilderThe IConfigurationBuilder.

適用対象