Compartilhar via


FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) Método

Definição

Define o FileProvider para provedores baseados em arquivo para um PhysicalFileProvider com o caminho base.

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

Parâmetros

builder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

basePath
String

O caminho absoluto de provedores baseados em arquivo.

Retornos

O IConfigurationBuilder.

Aplica-se a