Condividi tramite


FileConfigurationExtensions.SetBasePath(IConfigurationBuilder, String) Metodo

Definizione

Imposta l'oggetto FileProvider per i provider basati su file su un oggetto PhysicalFileProvider con il percorso di 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

Parametri

builder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

basePath
String

Percorso assoluto dei provider basati su file.

Restituisce

Oggetto IConfigurationBuilder.

Si applica a