次の方法で共有


JsonConfigurationExtensions.AddJsonFile メソッド

定義

オーバーロード

AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)

JSON 構成ソースを builder に追加します。

AddJsonFile(IConfigurationBuilder, String)

path の JSON 構成プロバイダーを builder に追加します。

AddJsonFile(IConfigurationBuilder, String, Boolean)

path の JSON 構成プロバイダーを builder に追加します。

AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)

path の JSON 構成プロバイダーを builder に追加します。

AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)

JSON 構成ソースを builder に追加します。

AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)

ソース:
JsonConfigurationExtensions.cs
ソース:
JsonConfigurationExtensions.cs

JSON 構成ソースを builder に追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Action<Microsoft::Extensions::Configuration::Json::JsonConfigurationSource ^> ^ configureSource);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Action<Microsoft.Extensions.Configuration.Json.JsonConfigurationSource>? configureSource);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Action<Microsoft.Extensions.Configuration.Json.JsonConfigurationSource> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, configureSource As Action(Of JsonConfigurationSource)) As IConfigurationBuilder

パラメーター

configureSource
Action<JsonConfigurationSource>

ソースを構成します。

戻り値

IConfigurationBuilder

適用対象

AddJsonFile(IConfigurationBuilder, String)

ソース:
JsonConfigurationExtensions.cs
ソース:
JsonConfigurationExtensions.cs

path の JSON 構成プロバイダーを builder に追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, path As String) As IConfigurationBuilder

パラメーター

path
String

builderProperties に格納されているベース パスの相対パス。

戻り値

IConfigurationBuilder

適用対象

AddJsonFile(IConfigurationBuilder, String, Boolean)

ソース:
JsonConfigurationExtensions.cs
ソース:
JsonConfigurationExtensions.cs

path の JSON 構成プロバイダーを builder に追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, path As String, optional As Boolean) As IConfigurationBuilder

パラメーター

path
String

builderProperties に格納されているベース パスの相対パス。

optional
Boolean

ファイルを省略可能かどうか。

戻り値

IConfigurationBuilder

適用対象

AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)

ソース:
JsonConfigurationExtensions.cs
ソース:
JsonConfigurationExtensions.cs

path の JSON 構成プロバイダーを builder に追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional, bool reloadOnChange);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder

パラメーター

path
String

builderProperties に格納されているベース パスの相対パス。

optional
Boolean

ファイルを省略可能かどうか。

reloadOnChange
Boolean

ファイルが変更された場合に構成を再度読み込むかどうか。

戻り値

IConfigurationBuilder

適用対象

AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)

ソース:
JsonConfigurationExtensions.cs
ソース:
JsonConfigurationExtensions.cs

JSON 構成ソースを builder に追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddJsonFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Microsoft::Extensions::FileProviders::IFileProvider ^ provider, System::String ^ path, bool optional, bool reloadOnChange);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider? provider, string path, bool optional, bool reloadOnChange);
static member AddJsonFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Microsoft.Extensions.FileProviders.IFileProvider * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddJsonFile (builder As IConfigurationBuilder, provider As IFileProvider, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder

パラメーター

provider
IFileProvider

ファイルにアクセスするために使用される IFileProvider

path
String

builderProperties に格納されているベース パスの相対パス。

optional
Boolean

ファイルを省略可能かどうか。

reloadOnChange
Boolean

ファイルが変更された場合に構成を再度読み込むかどうか。

戻り値

IConfigurationBuilder

適用対象