KeyPerFileConfigurationBuilderExtensions.AddKeyPerFile KeyPerFileConfigurationBuilderExtensions.AddKeyPerFile KeyPerFileConfigurationBuilderExtensions.AddKeyPerFile Method

Definition

Overloads

AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>) AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>) AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>)

Adds configuration using files from a directory. File names are used as the key, file contents are used as the value.

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

Adds configuration using files from a directory. File names are used as the key, file contents are used as the value.

AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>) AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>) AddKeyPerFile(IConfigurationBuilder, Action<KeyPerFileConfigurationSource>)

Adds configuration using files from a directory. File names are used as the key, file contents are used as the value.

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
Parameters
configureSource
Action<KeyPerFileConfigurationSource>

Configures the source.

Returns

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

Adds configuration using files from a directory. File names are used as the key, file contents are used as the value.

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
Parameters
directoryPath
String String String

The path to the directory.

optional
Boolean Boolean Boolean

Whether the directory is optional.

Returns

Applies to