XmlConfigurationExtensions.AddXmlFile Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>) |
Aggiunge un'origine della configurazione XML a |
AddXmlFile(IConfigurationBuilder, String) |
Aggiunge il provider di configurazione XML in |
AddXmlFile(IConfigurationBuilder, String, Boolean) |
Aggiunge il provider di configurazione XML in |
AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean) |
Aggiunge il provider di configurazione XML in |
AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) |
Aggiunge un'origine della configurazione XML a |
AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
Aggiunge un'origine della configurazione 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
Parametri
- builder
- IConfigurationBuilder
Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.
- configureSource
- Action<XmlConfigurationSource>
Configura l'origine.
Restituisce
Oggetto IConfigurationBuilder.
Si applica a
AddXmlFile(IConfigurationBuilder, String)
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
Aggiunge il provider di configurazione XML in 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
Parametri
- builder
- IConfigurationBuilder
Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.
- path
- String
Percorso relativo al percorso di base archiviato in Properties di builder
.
Restituisce
Oggetto IConfigurationBuilder.
Si applica a
AddXmlFile(IConfigurationBuilder, String, Boolean)
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
Aggiunge il provider di configurazione XML in 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
Parametri
- builder
- IConfigurationBuilder
Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.
- path
- String
Percorso relativo al percorso di base archiviato in Properties di builder
.
- optional
- Boolean
Se il file è facoltativo.
Restituisce
Oggetto IConfigurationBuilder.
Si applica a
AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
Aggiunge il provider di configurazione XML in 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
Parametri
- builder
- IConfigurationBuilder
Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.
- path
- String
Percorso relativo al percorso di base archiviato in Properties di builder
.
- optional
- Boolean
Se il file è facoltativo.
- reloadOnChange
- Boolean
Indica se la configurazione deve essere ricaricata in caso di modifiche al file.
Restituisce
Oggetto IConfigurationBuilder.
Si applica a
AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
- Origine:
- XmlConfigurationExtensions.cs
Aggiunge un'origine della configurazione 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
Parametri
- builder
- IConfigurationBuilder
Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.
- provider
- IFileProvider
Oggetto IFileProvider da usare per accedere al file.
- path
- String
Percorso relativo al percorso di base archiviato in Properties di builder
.
- optional
- Boolean
Se il file è facoltativo.
- reloadOnChange
- Boolean
Indica se la configurazione deve essere ricaricata in caso di modifiche al file.
Restituisce
Oggetto IConfigurationBuilder.