Bagikan melalui


FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) Metode

Definisi

Mengatur FileProvider untuk penyedia berbasis file ke PhysicalFileProvider dengan jalur dasar.

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

Parameter

builder
IConfigurationBuilder

yang IConfigurationBuilder akan ditambahkan ke.

basePath
String

Jalur absolut penyedia berbasis file.

Mengembalikan

IConfigurationBuilder.

Berlaku untuk