KeyPerFile Configuration Provider delimiter content (#9884)

pull/9941/head
Luke Latham 2018-12-10 16:20:20 -06:00 committed by GitHub
parent 9f3c53b402
commit 65d0fc2daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ author: guardrex
description: Learn how to use the Configuration API to configure an ASP.NET Core app.
ms.author: riande
ms.custom: mvc
ms.date: 11/15/2018
ms.date: 12/07/2018
uid: fundamentals/configuration/index
---
# Configuration in ASP.NET Core
@ -1131,6 +1131,8 @@ Overloads permit specifying:
* An `Action<KeyPerFileConfigurationSource>` delegate that configures the source.
* Whether the directory is optional and the path to the directory.
The double-underscore (`__`) is used as a configuration key delimiter in file names. For example, the file name `Logging__LogLevel__System` produces the configuration key `Logging:LogLevel:System`.
Call <xref:Microsoft.Extensions.Hosting.HostBuilder.ConfigureAppConfiguration*> when building the host to specify the app's configuration:
```csharp