Condividi tramite


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)

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)

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)

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, Action<KeyPerFileConfigurationSource>)

Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs

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

Oggetto IConfigurationBuilder.

Si applica a

AddKeyPerFile(IConfigurationBuilder, String)

Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs

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

builder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

directoryPath
String

Percorso della directory.

Restituisce

Oggetto IConfigurationBuilder.

Si applica a

AddKeyPerFile(IConfigurationBuilder, String, Boolean)

Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs

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

Oggetto IConfigurationBuilder.

Si applica a

AddKeyPerFile(IConfigurationBuilder, String, Boolean, Boolean)

Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs
Origine:
KeyPerFileConfigurationBuilderExtensions.cs

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, 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

builder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

directoryPath
String

Percorso della directory.

optional
Boolean

Indica se la directory è facoltativa.

reloadOnChange
Boolean

Se la configurazione deve essere ricaricata se i file vengono modificati, aggiunti o rimossi.

Restituisce

Oggetto IConfigurationBuilder.

Si applica a