XmlConfigurationExtensions.AddXmlFile XmlConfigurationExtensions.AddXmlFile XmlConfigurationExtensions.AddXmlFile Method

Definition

Overloads

AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>) AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>) AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)

Adds a XML configuration source to builder.

AddXmlFile(IConfigurationBuilder, String) AddXmlFile(IConfigurationBuilder, String) AddXmlFile(IConfigurationBuilder, String)

Adds the XML configuration provider at path to builder.

AddXmlFile(IConfigurationBuilder, String, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean)

Adds the XML configuration provider at path to builder.

AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)

Adds the XML configuration provider at path to builder.

AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)

Adds a XML configuration source to builder.

AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>) AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>) AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)

Adds a XML configuration source to builder.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Action<Microsoft.Extensions.Configuration.Xml.XmlConfigurationSource> configureSource);
static member AddXmlFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Action<Microsoft.Extensions.Configuration.Xml.XmlConfigurationSource> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddXmlFile (builder As IConfigurationBuilder, configureSource As Action(Of XmlConfigurationSource)) As IConfigurationBuilder
Parameters
configureSource
Action<XmlConfigurationSource>

Configures the source.

Returns

AddXmlFile(IConfigurationBuilder, String) AddXmlFile(IConfigurationBuilder, String) AddXmlFile(IConfigurationBuilder, String)

Adds the XML configuration provider at path to builder.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path);
static member AddXmlFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddXmlFile (builder As IConfigurationBuilder, path As String) As IConfigurationBuilder
Parameters
path
String String String

Path relative to the base path stored in Properties of builder.

Returns

AddXmlFile(IConfigurationBuilder, String, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean)

Adds the XML configuration provider at path to builder.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional);
static member AddXmlFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddXmlFile (builder As IConfigurationBuilder, path As String, optional As Boolean) As IConfigurationBuilder
Parameters
path
String String String

Path relative to the base path stored in Properties of builder.

optional
Boolean Boolean Boolean

Whether the file is optional.

Returns

AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)

Adds the XML configuration provider at path to builder.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange);
static member AddXmlFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddXmlFile (builder As IConfigurationBuilder, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder
Parameters
path
String String String

Path relative to the base path stored in Properties of builder.

optional
Boolean Boolean Boolean

Whether the file is optional.

reloadOnChange
Boolean Boolean Boolean

Whether the configuration should be reloaded if the file changes.

Returns

AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)

Adds a XML configuration source to builder.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider provider, string path, bool optional, bool reloadOnChange);
static member AddXmlFile : Microsoft.Extensions.Configuration.IConfigurationBuilder * Microsoft.Extensions.FileProviders.IFileProvider * string * bool * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddXmlFile (builder As IConfigurationBuilder, provider As IFileProvider, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder
Parameters
provider
IFileProvider IFileProvider IFileProvider

The IFileProvider to use to access the file.

path
String String String

Path relative to the base path stored in Properties of builder.

optional
Boolean Boolean Boolean

Whether the file is optional.

reloadOnChange
Boolean Boolean Boolean

Whether the configuration should be reloaded if the file changes.

Returns

Applies to