JsonConfigurationExtensions.AddJsonFile Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>) |
Ajoute une source de configuration JSON à |
AddJsonFile(IConfigurationBuilder, String) |
Ajoute le fournisseur de configuration JSON au |
AddJsonFile(IConfigurationBuilder, String, Boolean) |
Ajoute le fournisseur de configuration JSON au |
AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean) |
Ajoute le fournisseur de configuration JSON au |
AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) |
Ajoute une source de configuration JSON à |
AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)
Ajoute une source de configuration 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
Paramètres
- builder
- IConfigurationBuilder
IConfigurationBuilder auquel ajouter.
- configureSource
- Action<JsonConfigurationSource>
Configure la source.
Retours
S’applique à
AddJsonFile(IConfigurationBuilder, String)
Ajoute le fournisseur de configuration JSON au path
vers 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
Paramètres
- builder
- IConfigurationBuilder
IConfigurationBuilder auquel ajouter.
- path
- String
Chemin relatif au chemin de base stocké dans les Properties de builder
.
Retours
S’applique à
AddJsonFile(IConfigurationBuilder, String, Boolean)
Ajoute le fournisseur de configuration JSON au path
vers 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
Paramètres
- builder
- IConfigurationBuilder
IConfigurationBuilder auquel ajouter.
- path
- String
Chemin relatif au chemin de base stocké dans les Properties de builder
.
- optional
- Boolean
Si le fichier est facultatif.
Retours
S’applique à
AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)
Ajoute le fournisseur de configuration JSON au path
vers 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
Paramètres
- builder
- IConfigurationBuilder
IConfigurationBuilder auquel ajouter.
- 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
S’applique à
AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)
Ajoute une source de configuration 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
Paramètres
- builder
- IConfigurationBuilder
IConfigurationBuilder auquel ajouter.
- 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é.