FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将基于文件的提供程序的 FileProvider 设置为具有基路径的 PhysicalFileProvider。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ SetBasePath(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::String ^ basePath);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder SetBasePath (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string basePath);
static member SetBasePath : Microsoft.Extensions.Configuration.IConfigurationBuilder * string -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function SetBasePath (builder As IConfigurationBuilder, basePath As String) As IConfigurationBuilder
参数
- builder
- IConfigurationBuilder
要添加到的 IConfigurationBuilder。
- basePath
- String
基于文件的提供程序的绝对路径。