XmlConfigurationSource Klass

Definition

En XML-fil baserad FileConfigurationSource.

public ref class XmlConfigurationSource : Microsoft::Extensions::Configuration::FileConfigurationSource
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml which may contain XSLTs in the xml. XSLTs require dynamic code.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")]
public class XmlConfigurationSource : Microsoft.Extensions.Configuration.FileConfigurationSource
public class XmlConfigurationSource : Microsoft.Extensions.Configuration.FileConfigurationSource
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml which may contain XSLTs in the xml. XSLTs require dynamic code.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")>]
type XmlConfigurationSource = class
    inherit FileConfigurationSource
type XmlConfigurationSource = class
    inherit FileConfigurationSource
Public Class XmlConfigurationSource
Inherits FileConfigurationSource
Arv
XmlConfigurationSource
Attribut

Konstruktorer

Name Description
XmlConfigurationSource()

Initierar en ny instans av XmlConfigurationSource.

Egenskaper

Name Description
FileProvider

Hämtar eller anger providern som används för att komma åt innehållet i filen.

(Ärvd från FileConfigurationSource)
OnLoadException

Hämtar eller anger den åtgärd som anropas om ett ohanterat undantag inträffar i FileConfigurationProvider.Load.

(Ärvd från FileConfigurationSource)
Optional

Hämtar eller anger ett värde som anger om det är valfritt att läsa in filen.

(Ärvd från FileConfigurationSource)
Path

Hämtar eller anger sökvägen till filen.

(Ärvd från FileConfigurationSource)
ReloadDelay

Hämtar eller anger antalet millisekunder som läses in igen väntar innan belastningen anropas.

(Ärvd från FileConfigurationSource)
ReloadOnChange

Hämtar eller anger ett värde som anger om källan ska läsas in om den underliggande filen ändras.

(Ärvd från FileConfigurationSource)

Metoder

Name Description
Build(IConfigurationBuilder)

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

EnsureDefaults(IConfigurationBuilder)

Anropas för att använda standardinställningar på byggaren som FileProvider eller FileLoadExceptionHandler.

(Ärvd från FileConfigurationSource)
ResolveFileProvider()

Skapar en fysisk filprovider för filens katalog om ingen filprovider har angetts, för absolut sökväg.

(Ärvd från FileConfigurationSource)

Gäller för