Compartir vía


XmlConfigurationExtensions.AddXmlFile Método

Definición

Sobrecargas

AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)

Agrega un origen de configuración XML a builder.

AddXmlFile(IConfigurationBuilder, String)

Agrega el proveedor de configuración XML en path a builder.

AddXmlFile(IConfigurationBuilder, String, Boolean)

Agrega el proveedor de configuración XML en path a builder.

AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)

Agrega el proveedor de configuración XML en path a builder.

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

Agrega un origen de configuración XML a builder.

AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)

Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs

Agrega un origen de configuración XML a builder.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddXmlFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Action<Microsoft::Extensions::Configuration::Xml::XmlConfigurationSource ^> ^ configureSource);
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

Parámetros

builder
IConfigurationBuilder

El objeto IConfigurationBuilder al que se va a agregar.

configureSource
Action<XmlConfigurationSource>

Configura el origen.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a

AddXmlFile(IConfigurationBuilder, String)

Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs

Agrega el proveedor de configuración XML en path a builder.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddXmlFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path);
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

Parámetros

builder
IConfigurationBuilder

El objeto IConfigurationBuilder al que se va a agregar.

path
String

Ruta de acceso relativa a la ruta de acceso base almacenada en Properties de builder.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a

AddXmlFile(IConfigurationBuilder, String, Boolean)

Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs

Agrega el proveedor de configuración XML en path a builder.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddXmlFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional);
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

Parámetros

builder
IConfigurationBuilder

El objeto IConfigurationBuilder al que se va a agregar.

path
String

Ruta de acceso relativa a la ruta de acceso base almacenada en Properties de builder.

optional
Boolean

Si el archivo es opcional.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a

AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)

Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs

Agrega el proveedor de configuración XML en path a builder.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddXmlFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ path, bool optional, bool reloadOnChange);
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

Parámetros

builder
IConfigurationBuilder

El objeto IConfigurationBuilder al que se va a agregar.

path
String

Ruta de acceso relativa a la ruta de acceso base almacenada en Properties de builder.

optional
Boolean

Si el archivo es opcional.

reloadOnChange
Boolean

Si la configuración se debe volver a cargar si el archivo cambia.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a

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

Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs
Source:
XmlConfigurationExtensions.cs

Agrega un origen de configuración XML a builder.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddXmlFile(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Microsoft::Extensions::FileProviders::IFileProvider ^ provider, System::String ^ path, bool optional, bool reloadOnChange);
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

Parámetros

builder
IConfigurationBuilder

El objeto IConfigurationBuilder al que se va a agregar.

provider
IFileProvider

El objeto IFileProvider que se va a usar para acceder al archivo.

path
String

Ruta de acceso relativa a la ruta de acceso base almacenada en Properties de builder.

optional
Boolean

Si el archivo es opcional.

reloadOnChange
Boolean

Si la configuración se debe volver a cargar si el archivo cambia.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a