XmlConfigurationSource Klasse

Definition

Eine XML-Datei basierend 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
Vererbung
XmlConfigurationSource
Attribute

Konstruktoren

Name Beschreibung
XmlConfigurationSource()

Initialisiert eine neue instance von XmlConfigurationSource.

Eigenschaften

Name Beschreibung
FileProvider

Ruft den Anbieter ab, der für den Zugriff auf den Inhalt der Datei verwendet wird, oder legt diesen fest.

(Geerbt von FileConfigurationSource)
OnLoadException

Dient zum Abrufen oder Festlegen der Aktion, die aufgerufen wird, wenn in FileConfigurationProvider.Load eine Uncaught-Ausnahme auftritt.

(Geerbt von FileConfigurationSource)
Optional

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob das Laden der Datei optional ist.

(Geerbt von FileConfigurationSource)
Path

Ruft den Pfad zur Datei ab oder legt diesen fest.

(Geerbt von FileConfigurationSource)
ReloadDelay

Ruft die Anzahl der Millisekunden ab, die neu geladen werden, oder legt sie fest, bevor Load aufgerufen wird.

(Geerbt von FileConfigurationSource)
ReloadOnChange

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob die Quelle geladen wird, wenn sich die zugrunde liegende Datei ändert.

(Geerbt von FileConfigurationSource)

Methoden

Name Beschreibung
Build(IConfigurationBuilder)

Erstellt die XmlConfigurationProvider Quelle für diese Quelle.

EnsureDefaults(IConfigurationBuilder)

Wird aufgerufen, um alle Standardeinstellungen für den Generator wie fileProvider oder FileLoadExceptionHandler zu verwenden.

(Geerbt von FileConfigurationSource)
ResolveFileProvider()

Erstellt einen physischen Dateianbieter für das Verzeichnis der Datei, wenn kein Dateianbieter festgelegt wurde, für absoluten Pfad.

(Geerbt von FileConfigurationSource)

Gilt für: