FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) Method

Definition

Sets the FileProvider for file-based providers to a PhysicalFileProvider with the base path.

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
Parameters
basePath
String String String

The absolute path of file-based providers.

Returns

Applies to