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
檔案型提供者的絕對路徑。