XmlConfigurationExtensions.AddXmlFile Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>) |
Menambahkan sumber konfigurasi XML ke |
AddXmlFile(IConfigurationBuilder, String) |
Menambahkan penyedia konfigurasi XML ke |
AddXmlFile(IConfigurationBuilder, String, Boolean) |
Menambahkan penyedia konfigurasi XML ke |
AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean) |
Menambahkan penyedia konfigurasi XML ke |
AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean) |
Menambahkan sumber konfigurasi XML ke |
AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)
Menambahkan sumber konfigurasi XML ke 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
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- configureSource
- Action<XmlConfigurationSource>
Mengonfigurasi sumber.
Mengembalikan
Berlaku untuk
AddXmlFile(IConfigurationBuilder, String)
Menambahkan penyedia konfigurasi XML ke path
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
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
Mengembalikan
Berlaku untuk
AddXmlFile(IConfigurationBuilder, String, Boolean)
Menambahkan penyedia konfigurasi XML ke path
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
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
- optional
- Boolean
Apakah file bersifat opsional.
Mengembalikan
Berlaku untuk
AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)
Menambahkan penyedia konfigurasi XML ke path
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
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
- optional
- Boolean
Apakah file bersifat opsional.
- reloadOnChange
- Boolean
Apakah konfigurasi harus dimuat ulang jika file berubah.
Mengembalikan
Berlaku untuk
AddXmlFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)
Menambahkan sumber konfigurasi XML ke 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
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- provider
- IFileProvider
yang IFileProvider digunakan untuk mengakses file.
- path
- String
Jalur relatif terhadap jalur dasar yang disimpan di Properties .builder
- optional
- Boolean
Apakah file bersifat opsional.
- reloadOnChange
- Boolean
Apakah konfigurasi harus dimuat ulang jika file berubah.