Udostępnij za pośrednictwem


FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) Metoda

Definicja

Ustawia parametr FileProvider dla dostawców opartych na plikach na wartość PhysicalFileProvider przy użyciu ścieżki podstawowej.

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

Parametry

builder
IConfigurationBuilder

Element IConfigurationBuilder do dodania.

basePath
String

Bezwzględna ścieżka dostawców opartych na plikach.

Zwraca

Element IConfigurationBuilder.

Dotyczy