XmlConfigurationSource Klas

Definitie

Op basis van FileConfigurationSourceeen XML-bestand.

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
Overname
XmlConfigurationSource
Kenmerken

Constructors

Name Description
XmlConfigurationSource()

Initialiseert een nieuw exemplaar van XmlConfigurationSource.

Eigenschappen

Name Description
FileProvider

Hiermee haalt u de provider op die wordt gebruikt voor toegang tot de inhoud van het bestand.

(Overgenomen van FileConfigurationSource)
OnLoadException

Hiermee wordt de actie opgevraagd of ingesteld die wordt aangeroepen als er een niet-onderschepde uitzondering optreedt in FileConfigurationProvider.Load.

(Overgenomen van FileConfigurationSource)
Optional

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of het laden van het bestand optioneel is.

(Overgenomen van FileConfigurationSource)
Path

Hiermee haalt u het pad naar het bestand op of stelt u het in.

(Overgenomen van FileConfigurationSource)
ReloadDelay

Hiermee wordt het aantal milliseconden opgehaald of ingesteld dat opnieuw wordt geladen, wacht voordat u Laden aanroept.

(Overgenomen van FileConfigurationSource)
ReloadOnChange

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de bron wordt geladen als het onderliggende bestand wordt gewijzigd.

(Overgenomen van FileConfigurationSource)

Methoden

Name Description
Build(IConfigurationBuilder)

Hiermee wordt de XmlConfigurationProvider voor deze bron gebouwd.

EnsureDefaults(IConfigurationBuilder)

Wordt aangeroepen om standaardinstellingen te gebruiken op de opbouwfunctie, zoals FileProvider of FileLoadExceptionHandler.

(Overgenomen van FileConfigurationSource)
ResolveFileProvider()

Hiermee maakt u een fysieke bestandsprovider voor de map van het bestand als er geen bestandsprovider is ingesteld, voor absoluut pad.

(Overgenomen van FileConfigurationSource)

Van toepassing op