KeyPerFileConfigurationSource Klass

Definition

En IConfigurationSource som används för att konfigurera KeyPerFileConfigurationProvider.

public ref class KeyPerFileConfigurationSource : Microsoft::Extensions::Configuration::IConfigurationSource
public class KeyPerFileConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource
type KeyPerFileConfigurationSource = class
    interface IConfigurationSource
Public Class KeyPerFileConfigurationSource
Implements IConfigurationSource
Arv
KeyPerFileConfigurationSource
Implementeringar

Konstruktorer

Name Description
KeyPerFileConfigurationSource()

Konstruktören;

Egenskaper

Name Description
FileProvider

Filprovidern som är rotkatalogfilerna för "/" används som konfigurationsdata.

IgnoreCondition

Används för att avgöra om en fil ska ignoreras med dess namn. Använder som standard IgnorePrefix.

IgnorePrefix

Filer som börjar med det här prefixet undantas. Ställs in till "ignorera" som standard.

Optional

Om det är falskt utlöser det om katalogen inte finns.

ReloadDelay

Antalet millisekunder som läses in igen väntar innan belastningen anropas. Detta hjälper till att undvika att utlösa ny inläsning innan en fil skrivs helt. Standardvärdet är 250.

ReloadOnChange

Avgör om källan ska läsas in om den underliggande filen ändras.

SectionDelimiter

Avgränsare som används för att separera enskilda nycklar i en sökväg.

Metoder

Name Description
Build(IConfigurationBuilder)

Skapar för den KeyPerFileConfigurationProvider här källan.

Gäller för