KeyPerFileConfigurationBuilderExtensions.AddKeyPerFile Metodo

Definizione

Overload

AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>)

Aggiunge la configurazione usando i file di una directory. I nomi file vengono usati come chiave, i contenuti dei file vengono usati come valore.

AddKeyPerFile(IConfigurationBuilder, String)
AddKeyPerFile(IConfigurationBuilder, String, Boolean)

Aggiunge la configurazione usando i file di una directory. I nomi file vengono usati come chiave, i contenuti dei file vengono usati come valore.

AddKeyPerFile(IConfigurationBuilder, String, Boolean, Boolean)

AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>)

Aggiunge la configurazione usando i file di una directory. I nomi file vengono usati come chiave, i contenuti dei file vengono usati come valore.

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

Parametri

builder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

configureSource
Action<KeyPerFileConfigurationSource>

Configura l'origine.

Restituisce

IConfigurationBuilder

Oggetto IConfigurationBuilder.

Si applica a

AddKeyPerFile(IConfigurationBuilder, String)

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

Parametri

directoryPath
String

Restituisce

IConfigurationBuilder

Si applica a

AddKeyPerFile(IConfigurationBuilder, String, Boolean)

Aggiunge la configurazione usando i file di una directory. I nomi file vengono usati come chiave, i contenuti dei file vengono usati come valore.

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

Parametri

builder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

directoryPath
String

Percorso della directory.

optional
Boolean

Indica se la directory è facoltativa.

Restituisce

IConfigurationBuilder

Oggetto IConfigurationBuilder.

Si applica a

AddKeyPerFile(IConfigurationBuilder, String, Boolean, Boolean)

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

Parametri

directoryPath
String
optional
Boolean
reloadOnChange
Boolean

Restituisce

IConfigurationBuilder

Si applica a