JsonConfigurationExtensions.AddJsonFile Methode

Definition

Überlädt

AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)

Fügt builder eine JSON-Konfigurationsquelle hinzu.

AddJsonFile(IConfigurationBuilder, String)

Fügt builder den JSON-Konfigurationsanbieter unter path hinzu.

AddJsonFile(IConfigurationBuilder, String, Boolean)

Fügt builder den JSON-Konfigurationsanbieter unter path hinzu.

AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)

Fügt builder den JSON-Konfigurationsanbieter unter path hinzu.

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

Fügt builder eine JSON-Konfigurationsquelle hinzu.

AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)

Fügt builder eine JSON-Konfigurationsquelle hinzu.

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);
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

Parameter

builder
IConfigurationBuilder

Die IConfigurationBuilder-Schnittstelle, der etwas hinzugefügt werden soll.

configureSource
Action<JsonConfigurationSource>

Konfiguriert die Quelle.

Gibt zurück

IConfigurationBuilder

Die IConfigurationBuilder.

Gilt für:

AddJsonFile(IConfigurationBuilder, String)

Fügt builder den JSON-Konfigurationsanbieter unter path hinzu.

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

Parameter

builder
IConfigurationBuilder

Die IConfigurationBuilder-Schnittstelle, der etwas hinzugefügt werden soll.

path
String

Der Pfad relativ zum Basispfad, der in der Properties-Eigenschaft von builder gespeichert ist.

Gibt zurück

IConfigurationBuilder

Die IConfigurationBuilder.

Gilt für:

AddJsonFile(IConfigurationBuilder, String, Boolean)

Fügt builder den JSON-Konfigurationsanbieter unter path hinzu.

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

Parameter

builder
IConfigurationBuilder

Die IConfigurationBuilder-Schnittstelle, der etwas hinzugefügt werden soll.

path
String

Der Pfad relativ zum Basispfad, der in der Properties-Eigenschaft von builder gespeichert ist.

optional
Boolean

Ob die Datei optional ist

Gibt zurück

IConfigurationBuilder

Die IConfigurationBuilder.

Gilt für:

AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)

Fügt builder den JSON-Konfigurationsanbieter unter path hinzu.

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

Parameter

builder
IConfigurationBuilder

Die IConfigurationBuilder-Schnittstelle, der etwas hinzugefügt werden soll.

path
String

Der Pfad relativ zum Basispfad, der in der Properties-Eigenschaft von builder gespeichert ist.

optional
Boolean

Ob die Datei optional ist

reloadOnChange
Boolean

Gibt an, ob die Konfiguration bei Dateiänderungen neu geladen werden soll.

Gibt zurück

IConfigurationBuilder

Die IConfigurationBuilder.

Gilt für:

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

Fügt builder eine JSON-Konfigurationsquelle hinzu.

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);
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

Parameter

builder
IConfigurationBuilder

Die IConfigurationBuilder-Schnittstelle, der etwas hinzugefügt werden soll.

provider
IFileProvider

Die IFileProvider-Schnittstelle, die für den Zugriff auf die Datei verwendet werden soll.

path
String

Der Pfad relativ zum Basispfad, der in der Properties-Eigenschaft von builder gespeichert ist.

optional
Boolean

Ob die Datei optional ist

reloadOnChange
Boolean

Gibt an, ob die Konfiguration bei Dateiänderungen neu geladen werden soll.

Gibt zurück

IConfigurationBuilder

Die IConfigurationBuilder.

Gilt für: