다음을 통해 공유


XmlConfigurationExtensions.AddXmlFile 메서드

정의

오버로드

AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)

builder에 XML 구성 소스를 추가합니다.

AddXmlFile(IConfigurationBuilder, String)

path에 있는 XML 구성 공급자를 builder에 추가합니다.

AddXmlFile(IConfigurationBuilder, String, Boolean)

path에 있는 XML 구성 공급자를 builder에 추가합니다.

AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)

path에 있는 XML 구성 공급자를 builder에 추가합니다.

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

builder에 XML 구성 소스를 추가합니다.

AddXmlFile(IConfigurationBuilder, Action<XmlConfigurationSource>)

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

builder에 XML 구성 소스를 추가합니다.

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

매개 변수

builder
IConfigurationBuilder

추가할 IConfigurationBuilder입니다.

configureSource
Action<XmlConfigurationSource>

소스를 구성합니다.

반환

IConfigurationBuilder

적용 대상

AddXmlFile(IConfigurationBuilder, String)

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

path에 있는 XML 구성 공급자를 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

매개 변수

builder
IConfigurationBuilder

추가할 IConfigurationBuilder입니다.

path
String

builderProperties에 저장된 기본 경로를 기준으로 하는 경로입니다.

반환

IConfigurationBuilder

적용 대상

AddXmlFile(IConfigurationBuilder, String, Boolean)

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

path에 있는 XML 구성 공급자를 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

매개 변수

builder
IConfigurationBuilder

추가할 IConfigurationBuilder입니다.

path
String

builderProperties에 저장된 기본 경로를 기준으로 하는 경로입니다.

optional
Boolean

파일이 선택 사항인지 여부

반환

IConfigurationBuilder

적용 대상

AddXmlFile(IConfigurationBuilder, String, Boolean, Boolean)

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

path에 있는 XML 구성 공급자를 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

매개 변수

builder
IConfigurationBuilder

추가할 IConfigurationBuilder입니다.

path
String

builderProperties에 저장된 기본 경로를 기준으로 하는 경로입니다.

optional
Boolean

파일이 선택 사항인지 여부

reloadOnChange
Boolean

파일이 변경되면 구성을 다시 로드해야 하는지 여부가 나타납니다.

반환

IConfigurationBuilder

적용 대상

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

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

builder에 XML 구성 소스를 추가합니다.

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

매개 변수

builder
IConfigurationBuilder

추가할 IConfigurationBuilder입니다.

provider
IFileProvider

파일에 액세스하는 데 사용할 IFileProvider입니다.

path
String

builderProperties에 저장된 기본 경로를 기준으로 하는 경로입니다.

optional
Boolean

파일이 선택 사항인지 여부

reloadOnChange
Boolean

파일이 변경되면 구성을 다시 로드해야 하는지 여부가 나타납니다.

반환

IConfigurationBuilder

적용 대상